mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
|
name: Scorecard supply-chain security
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
# Only the default branch is supported.
|
||
|
branches:
|
||
|
- main
|
||
|
|
||
|
permissions: read-all
|
||
|
|
||
|
jobs:
|
||
|
analysis:
|
||
|
name: Scorecard analysis
|
||
|
runs-on: ubuntu-22.04
|
||
|
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:
|
||
|
- name: "Checkout code"
|
||
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # v3.1.0
|
||
|
with:
|
||
|
persist-credentials: false
|
||
|
|
||
|
- name: "Run analysis"
|
||
|
uses: ossf/scorecard-action@99c53751e09b9529366343771cc321ec74e9bd3d # v2.0.6
|
||
|
with:
|
||
|
results_file: results.sarif
|
||
|
results_format: sarif
|
||
|
publish_results: true
|
||
|
|
||
|
- name: "Upload artifact"
|
||
|
uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0
|
||
|
with:
|
||
|
name: SARIF file
|
||
|
path: results.sarif
|
||
|
retention-days: 5
|
||
|
|
||
|
- name: "Upload to code-scanning"
|
||
|
uses: github/codeql-action/upload-sarif@807578363a7869ca324a79039e6db9c843e0e100 # v2.1.27
|
||
|
with:
|
||
|
sarif_file: results.sarif
|