chore(trivy): suppress fast-uri CVE-2026-75931 from Teams SPDX manife… #12803
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: 'SDK: Container Checks' | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| - 'v5.*' | |
| paths: | |
| - 'prowler/**' | |
| - 'Dockerfile*' | |
| - 'pyproject.toml' | |
| - 'uv.lock' | |
| - '.trivyignore.yaml' | |
| - '.github/workflows/sdk-container-checks.yml' | |
| pull_request: | |
| branches: | |
| - 'master' | |
| - 'v5.*' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| IMAGE_NAME: prowler | |
| permissions: {} | |
| jobs: | |
| sdk-dockerfile-lint: | |
| if: github.repository == 'prowler-cloud/prowler' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| github.com:443 | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| # zizmor: ignore[artipacked] | |
| persist-credentials: true # Required by tj-actions/changed-files to fetch PR branch | |
| - name: Check if Dockerfile changed | |
| id: dockerfile-changed | |
| uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6 | |
| with: | |
| files: Dockerfile | |
| - name: Lint Dockerfile with Hadolint | |
| if: steps.dockerfile-changed.outputs.any_changed == 'true' | |
| uses: hadolint/hadolint-action@2332a7b74a6de0dda2e2221d575162eba76ba5e5 # v3.3.0 | |
| with: | |
| dockerfile: Dockerfile | |
| ignore: DL3013 | |
| sdk-container-build-and-scan: | |
| if: github.repository == 'prowler-cloud/prowler' | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| permissions: | |
| contents: read | |
| security-events: write | |
| pull-requests: write | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: block | |
| allowed-endpoints: > | |
| github.com:443 | |
| registry-1.docker.io:443 | |
| auth.docker.io:443 | |
| production.cloudflare.docker.com:443 | |
| production.cloudfront.docker.com:443 | |
| api.github.com:443 | |
| mirror.gcr.io:443 | |
| check.trivy.dev:443 | |
| raw.githubusercontent.com:443 | |
| objects.githubusercontent.com:443 | |
| grype.anchore.io:443 | |
| get.anchore.io:443 | |
| debian.map.fastlydns.net:80 | |
| release-assets.githubusercontent.com:443 | |
| objects.githubusercontent.com:443 | |
| pypi.org:443 | |
| files.pythonhosted.org:443 | |
| www.powershellgallery.com:443 | |
| aka.ms:443 | |
| cdn.powershellgallery.com:443 | |
| _http._tcp.deb.debian.org:443 | |
| powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net:443 | |
| get.trivy.dev:443 | |
| raw.githubusercontent.com:443 | |
| releases.astral.sh:443 | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| # zizmor: ignore[artipacked] | |
| persist-credentials: true # Required by tj-actions/changed-files to fetch PR branch | |
| - name: Check for SDK changes | |
| id: check-changes | |
| uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v47.0.6 | |
| with: | |
| files: | | |
| prowler/** | |
| Dockerfile* | |
| pyproject.toml | |
| uv.lock | |
| .trivyignore.yaml | |
| .github/workflows/sdk-container-checks.yml | |
| .github/actions/trivy-scan/** | |
| .github/actions/grype-scan/** | |
| .grype.yaml | |
| .github/scripts/grype-pr-comment.js | |
| files_ignore: | | |
| prowler/CHANGELOG.md | |
| prowler/changelog.d/** | |
| **/AGENTS.md | |
| - name: Set up Docker Buildx | |
| if: steps.check-changes.outputs.any_changed == 'true' | |
| uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0 | |
| - name: Build SDK container | |
| if: steps.check-changes.outputs.any_changed == 'true' | |
| uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f # v7.1.0 | |
| with: | |
| context: . | |
| push: false | |
| load: true | |
| tags: ${{ env.IMAGE_NAME }}:${{ github.sha }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=${{ github.event_name == 'pull_request' && 'min' || 'max' }} | |
| - name: Scan SDK container with Trivy | |
| if: steps.check-changes.outputs.any_changed == 'true' | |
| uses: ./.github/actions/trivy-scan | |
| with: | |
| image-name: ${{ env.IMAGE_NAME }} | |
| image-tag: ${{ github.sha }} | |
| fail-on-severity: 'high' | |
| severity: 'CRITICAL,HIGH' | |
| - name: Scan SDK container with Grype | |
| if: steps.check-changes.outputs.any_changed == 'true' | |
| uses: ./.github/actions/grype-scan | |
| with: | |
| image-name: ${{ env.IMAGE_NAME }} | |
| image-tag: ${{ github.sha }} | |
| fail-on-severity: 'high' |