forked from alepolidori/astproxy
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (36 loc) · 940 Bytes
/
scans.yml
File metadata and controls
42 lines (36 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: SBOM scans
on:
push:
branches:
- master
permissions:
actions: read
contents: write
security-events: write
packages: write
jobs:
sbom:
name: SBOM
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Generate Trivy GitHub report
uses: aquasecurity/trivy-action@0.33.1
with:
scan-type: 'fs'
scan-ref: '.'
format: 'github'
output: 'dependency-results.sbom.json'
github-pat: ${{ secrets.GITHUB_TOKEN }}
- name: Generate Trivy SARIF report
uses: aquasecurity/trivy-action@0.33.1
with:
scan-type: 'fs'
scan-ref: '.'
format: 'sarif'
output: 'trivy-results.sarif'
github-pat: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'