2023-02-14 05:46:49 +03:00
|
|
|
# synced from @nextcloud/android-config
|
|
|
|
name: Scorecard supply-chain security
|
|
|
|
on:
|
|
|
|
branch_protection_rule:
|
|
|
|
schedule:
|
|
|
|
- cron: '32 23 * * 4'
|
|
|
|
push:
|
|
|
|
branches: [ "main", "master" ]
|
|
|
|
|
|
|
|
# Declare default permissions as read only.
|
|
|
|
permissions: read-all
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
analysis:
|
|
|
|
name: Scorecard analysis
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
# Needed to upload the results to code-scanning dashboard.
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "Checkout code"
|
2023-03-17 05:42:43 +03:00
|
|
|
uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f # v3.4.0
|
2023-02-14 05:46:49 +03:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
|
|
|
|
|
|
|
- name: "Run analysis"
|
2023-02-16 05:46:15 +03:00
|
|
|
uses: ossf/scorecard-action@e38b1902ae4f44df626f11ba0734b14fb91f8f86 # v2.1.2
|
2023-02-14 05:46:49 +03:00
|
|
|
with:
|
|
|
|
results_file: results.sarif
|
|
|
|
results_format: sarif
|
|
|
|
publish_results: false
|
|
|
|
|
|
|
|
# Upload the results to GitHub's code scanning dashboard.
|
|
|
|
- name: "Upload to code-scanning"
|
2023-03-17 05:42:43 +03:00
|
|
|
uses: github/codeql-action/upload-sarif@168b99b3c22180941ae7dbdd5f5c9678ede476ba # v2.2.7
|
2023-02-14 05:46:49 +03:00
|
|
|
with:
|
|
|
|
sarif_file: results.sarif
|