2022-10-19 07:27:45 +00:00
|
|
|
name: Scorecards supply-chain security
|
2023-01-05 22:36:13 +00:00
|
|
|
|
2022-10-19 07:27:45 +00:00
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '30 1 * * 6'
|
|
|
|
push:
|
2023-01-05 22:36:13 +00:00
|
|
|
branches:
|
|
|
|
- main
|
2022-10-19 07:27:45 +00:00
|
|
|
|
2023-06-19 15:47:58 +00:00
|
|
|
permissions: read-all
|
|
|
|
|
2023-01-06 15:24:55 +00:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-10-19 07:27:45 +00:00
|
|
|
jobs:
|
|
|
|
analysis:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
security-events: write
|
|
|
|
id-token: write
|
|
|
|
steps:
|
2023-01-05 22:36:13 +00:00
|
|
|
- name: Checkout
|
2023-06-12 08:11:03 +00:00
|
|
|
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
|
2022-10-19 07:27:45 +00:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2023-01-05 22:36:13 +00:00
|
|
|
- name: Run analysis
|
2023-06-26 08:11:22 +00:00
|
|
|
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
|
2022-10-19 07:27:45 +00:00
|
|
|
with:
|
|
|
|
results_file: results.sarif
|
|
|
|
results_format: sarif
|
|
|
|
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
|
|
|
|
publish_results: true
|
2023-01-05 22:36:13 +00:00
|
|
|
- name: Upload artifact
|
2023-01-09 09:05:26 +00:00
|
|
|
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
2022-10-19 07:27:45 +00:00
|
|
|
with:
|
|
|
|
name: SARIF file
|
|
|
|
path: results.sarif
|
|
|
|
retention-days: 5
|
2023-01-05 22:36:13 +00:00
|
|
|
- name: Upload to code-scanning
|
2023-06-12 12:36:19 +00:00
|
|
|
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
|
2022-10-19 07:27:45 +00:00
|
|
|
with:
|
|
|
|
sarif_file: results.sarif
|