2022-10-19 12:57:45 +05:30
|
|
|
name: Scorecards supply-chain security
|
2023-01-05 23:36:13 +01:00
|
|
|
|
2023-06-30 13:44:57 +02:00
|
|
|
permissions: {}
|
|
|
|
|
2022-10-19 12:57:45 +05:30
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '30 1 * * 6'
|
|
|
|
push:
|
2023-01-05 23:36:13 +01:00
|
|
|
branches:
|
|
|
|
- main
|
2022-10-19 12:57:45 +05:30
|
|
|
|
2023-01-06 16:24:55 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-10-19 12:57:45 +05:30
|
|
|
jobs:
|
|
|
|
analysis:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
security-events: write
|
|
|
|
id-token: write
|
|
|
|
steps:
|
2023-01-05 23:36:13 +01:00
|
|
|
- name: Checkout
|
2023-09-05 09:27:02 +00:00
|
|
|
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
|
2022-10-19 12:57:45 +05:30
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2023-01-05 23:36:13 +01:00
|
|
|
- name: Run analysis
|
2023-06-26 08:11:22 +00:00
|
|
|
uses: ossf/scorecard-action@08b4669551908b1024bb425080c797723083c031 # v2.2.0
|
2022-10-19 12:57:45 +05:30
|
|
|
with:
|
|
|
|
results_file: results.sarif
|
|
|
|
results_format: sarif
|
|
|
|
repo_token: ${{ secrets.SCORECARD_READ_TOKEN }}
|
|
|
|
publish_results: true
|
2023-01-05 23:36:13 +01:00
|
|
|
- name: Upload artifact
|
2023-01-09 09:05:26 +00:00
|
|
|
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
2022-10-19 12:57:45 +05:30
|
|
|
with:
|
|
|
|
name: SARIF file
|
|
|
|
path: results.sarif
|
|
|
|
retention-days: 5
|
2023-01-05 23:36:13 +01: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 12:57:45 +05:30
|
|
|
with:
|
|
|
|
sarif_file: results.sarif
|