2024-01-27 23:32:42 +01:00
|
|
|
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
|
|
|
|
|
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
|
2024-06-13 22:40:59 +00:00
|
|
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
2022-10-19 12:57:45 +05:30
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2023-01-05 23:36:13 +01:00
|
|
|
- name: Run analysis
|
2024-07-29 16:18:20 +00:00
|
|
|
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.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-09-07 10:05:24 +00:00
|
|
|
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
|
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
|
2024-08-30 17:23:54 +00:00
|
|
|
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
|
2022-10-19 12:57:45 +05:30
|
|
|
with:
|
|
|
|
sarif_file: results.sarif
|