trivy-gate: fs scans of lockfiles, checksum-verified binary when no Docker
dtrack-sbom converts with the same runtime. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
86409a2413
commit
7fae1fa2f6
3 files changed
+127
-28
No files matched your search
@@ -27,6 +27,20 @@ Intended order in a pipeline:
|
||||
skip: ${{ inputs.skip_trivy || 'false' }}
|
||||
```
|
||||
|
||||
Source trees (apps that ship no image, e.g. an APK): `scan-type: fs` scans
|
||||
the git-tracked files plus lockfiles generated in the job (also gitignored
|
||||
ones like Flutter's `pubspec.lock`), so run it after the dependency fetch:
|
||||
|
||||
```yaml
|
||||
- uses: https://git.rfa.cz/tth-pub/ci-actions/trivy-gate@v1.1
|
||||
with:
|
||||
scan-type: fs
|
||||
```
|
||||
|
||||
Jobs without a Docker daemon (a `container:` image such as Flutter) fall
|
||||
back to the pinned Trivy release binary, verified by SHA-256 (`runtime:
|
||||
auto`); `jq` is installed with apt when missing.
|
||||
|
||||
Accepted risks go to `.trivyignore.yaml` in the calling repo, each with a
|
||||
statement and an expiry, so they come back on their own:
|
||||
|
||||
|
||||
Reference in new issue
Block a user