fix: replace gosu with su-exec (CVE-2025-68121) (#1) #3
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: SBOM & Vulnerability Scan | |
| on: | |
| push: | |
| branches: ["release/*"] | |
| pull_request: | |
| branches: ["release/*"] | |
| workflow_dispatch: | |
| jobs: | |
| sbom: | |
| name: Generate SBOM and scan | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Build image | |
| run: | | |
| docker build -t postgres:local -f 18/alpine3.23/Dockerfile 18/alpine3.23/ | |
| - name: Generate SBOM (Syft) | |
| uses: anchore/sbom-action@v0 | |
| with: | |
| image: postgres:local | |
| format: cyclonedx-json | |
| output-file: sbom.cdx.json | |
| - name: Scan vulnerabilities (Grype) | |
| uses: anchore/scan-action@v6 | |
| with: | |
| image: postgres:local | |
| fail-build: false | |
| output-format: table | |
| - name: Upload SBOM | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: sbom-postgres | |
| path: sbom.cdx.json | |
| retention-days: 90 |