2024-01-27 23:32:42 +01:00
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
|
2023-10-17 20:11:57 +05:30
|
|
|
name: Build devcontainer
|
|
|
|
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- 'main'
|
|
|
|
- 'release*'
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
devcontainer-build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2024-10-24 09:42:17 +00:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2023-10-17 20:11:57 +05:30
|
|
|
- name: Build devcontainer image
|
|
|
|
run: docker build .devcontainer
|
|
|
|
- name: Trivy Scan Image
|
2024-11-20 09:35:46 +00:00
|
|
|
uses: aquasecurity/trivy-action@18f2510ee396bbf400402947b394f2dd8c87dbb0 # v0.29.0
|
2023-10-17 20:11:57 +05:30
|
|
|
with:
|
|
|
|
scan-type: 'fs'
|
|
|
|
ignore-unfixed: true
|
|
|
|
format: 'sarif'
|
|
|
|
output: 'trivy-results.sarif'
|
|
|
|
severity: 'CRITICAL,HIGH'
|
2024-10-07 18:09:28 +05:30
|
|
|
env:
|
|
|
|
# Trivy is returning TOOMANYREQUESTS
|
|
|
|
# See: https://github.com/aquasecurity/trivy-action/issues/389#issuecomment-2385416577
|
|
|
|
TRIVY_DB_REPOSITORY: 'public.ecr.aws/aquasecurity/trivy-db:2'
|