2023-01-17 14:01:47 +01:00
|
|
|
name: Scorecard supply-chain security
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
# Only the default branch is supported.
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analysis:
|
|
|
|
name: Scorecard analysis
|
2024-10-09 12:16:10 +02:00
|
|
|
runs-on: ubuntu-24.04
|
2023-01-17 14:01:47 +01:00
|
|
|
permissions:
|
|
|
|
# Needed to upload the results to code-scanning dashboard.
|
|
|
|
security-events: write
|
|
|
|
# Needed to publish results and get a badge (for publish_results below).
|
|
|
|
id-token: write
|
|
|
|
|
|
|
|
steps:
|
2023-01-18 10:15:58 +01:00
|
|
|
- name: Checkout
|
2024-11-28 16:15:26 +01:00
|
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
2023-01-17 14:01:47 +01:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
|
2023-01-18 10:15:58 +01:00
|
|
|
- name: Run analysis
|
2024-08-01 10:34:44 +02:00
|
|
|
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
|
2023-01-17 14:01:47 +01:00
|
|
|
with:
|
|
|
|
results_file: results.sarif
|
|
|
|
results_format: sarif
|
|
|
|
publish_results: true
|
|
|
|
|
2023-01-18 10:15:58 +01:00
|
|
|
- name: Upload artifact
|
2024-11-28 16:15:26 +01:00
|
|
|
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
|
2023-01-17 14:01:47 +01:00
|
|
|
with:
|
|
|
|
name: SARIF file
|
|
|
|
path: results.sarif
|
|
|
|
retention-days: 5
|
|
|
|
|
2023-01-18 10:15:58 +01:00
|
|
|
- name: Upload to code-scanning
|
2024-11-28 16:15:26 +01:00
|
|
|
uses: github/codeql-action/upload-sarif@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
|
2023-01-17 14:01:47 +01:00
|
|
|
with:
|
|
|
|
sarif_file: results.sarif
|