Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
# the build gate (exit-code 1) makes Trivy mark the SARIF invocation
# unsuccessful whenever a finding exists, which GitHub surfaces as
# "Trivy is reporting errors" / a code-scanning configuration error.
- uses: aquasecurity/trivy-action@master
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
scan-type: config
# Scoped to the Dockerfile — the one config artifact this repo owns
Expand All @@ -68,7 +68,7 @@ jobs:
# step already downloaded (skip-db-update). Separate from the SARIF upload
# so a finding fails CI without poisoning the code-scanning analysis.
- name: gate on HIGH/CRITICAL
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
scan-type: config
scan-ref: Dockerfile
Expand All @@ -80,10 +80,19 @@ jobs:
trivy-fs:
name: trivy (filesystem vuln scan — npm deps)
runs-on: ubuntu-latest
env:
# trivy's npm/pnpm parser drops dev dependencies unless told otherwise, so
# this job reported zero findings while the lockfile carried a fixable HIGH.
# A build-time dependency still executes in CI with repo credentials, which
# is the surface this gate exists to cover, and the sibling repos scanning
# the same tree with osv-scanner have always counted them — the two tools
# disagreed on the same advisory in the same org. trivy-action exposes no
# input for it; the flag is only reachable as its TRIVY_-prefixed env var.
TRIVY_INCLUDE_DEV_DEPS: "true"
steps:
- uses: actions/checkout@v4
# Report step: always upload a clean SARIF (exit-code 0) — see trivy-config.
- uses: aquasecurity/trivy-action@master
- uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
scan-type: fs
scan-ref: .
Expand All @@ -105,7 +114,7 @@ jobs:
category: trivy-fs
# Gate step: fail the build on HIGH/CRITICAL, reusing the cached DB.
- name: gate on HIGH/CRITICAL
uses: aquasecurity/trivy-action@master
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # v0.36.0
with:
scan-type: fs
scan-ref: .
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"fast-uri": "^3.1.4",
"form-data": "^4.0.6",
"gaxios": "^7.3.0",
"nanoid": "^3.3.17",
"postcss": "^8.5.15",
"protobufjs": "^7.6.4",
"qs": "^6.15.2",
Expand Down
Loading