-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (43 loc) · 1.31 KB
/
nightly.yaml
File metadata and controls
49 lines (43 loc) · 1.31 KB
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
43
44
45
46
47
48
49
---
name: "nightly"
run-name: "Nightly tests for ${{ github.ref_name }}"
on:
schedule:
- cron: "22 0 * * *" # Runs daily at 22:00 UTC
workflow_dispatch:
permissions:
contents: read
jobs:
vuln-scan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Create SBOM
uses: ./
with:
target: ./
output_format: cyclonedx-json
output_file: "${{ github.event.repository.name }}-sbom.cdx.json"
vuln: true
vuln_output_format: sarif
- name: Scan SBOM
uses: anchore/scan-action@v6
id: scan
with:
sbom: "${{ github.event.repository.name }}-sbom.cdx.json"
format: sarif
fail-build: false
add-cpes-if-none: true
by-cve: true
- name: Upload SARIF report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{ steps.scan.outputs.sarif }}