File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : OSSF Scorecard
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ schedule :
8+ - cron : " 18 23 * * 6" # once a week
9+ workflow_dispatch :
10+
11+ permissions : read-all
12+
13+ jobs :
14+ analysis :
15+ if : ${{ github.repository == 'open-telemetry/opentelemetry-ruby-contrib' }}
16+ runs-on : ubuntu-latest
17+ permissions :
18+ # Needed for Code scanning upload
19+ security-events : write
20+ # Needed for GitHub OIDC token if publish_results is true
21+ id-token : write
22+ steps :
23+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+ with :
25+ persist-credentials : false
26+
27+ - uses : ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
28+ with :
29+ results_file : results.sarif
30+ results_format : sarif
31+ publish_results : true
32+
33+ # Upload the results as artifacts (optional). Commenting out will disable
34+ # uploads of run results in SARIF format to the repository Actions tab.
35+ # https://docs.github.com/en/actions/advanced-guides/storing-workflow-data-as-artifacts
36+ - name : " Upload artifact"
37+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
38+ with :
39+ name : SARIF file
40+ path : results.sarif
41+ retention-days : 5
42+
43+ # Upload the results to GitHub's code scanning dashboard (optional).
44+ # Commenting out will disable upload of results to your repo's Code Scanning dashboard
45+ - name : " Upload to code-scanning"
46+ uses : github/codeql-action/upload-sarif@5f8171a638ada777af81d42b55959a643bb29017 # v3.28.12
47+ with :
48+ sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments