File tree 1 file changed +11
-43
lines changed
1 file changed +11
-43
lines changed Original file line number Diff line number Diff line change 13
13
# Run the workflow manually
14
14
workflow_dispatch :
15
15
16
- # # Declare default permissions as read-only
17
- # permissions: read-all
18
-
19
- # jobs:
20
- # run-scorecard:
21
- # # Call reusable workflow file
22
- # uses: cisco-ospo/.github/.github/workflows/_scorecard.yml@main
23
- # permissions:
24
- # id-token: write
25
- # security-events: write
26
- # secrets: inherit
27
- # with:
28
- # # Publish results of Scorecard analysis
29
- # publish-results: true
30
-
31
- permissions :
32
- id-token : none
33
- security-events : none
16
+ # Declare default permissions as read-only
17
+ permissions : read-all
34
18
35
19
jobs :
36
- scorecard :
37
- runs-on : ubuntu-latest
20
+ run-scorecard :
21
+ # Call reusable workflow file
22
+ uses : cisco-ospo/.github/.github/workflows/_scorecard.yml@main
38
23
permissions :
39
- id-token : write
40
- security-events : write
41
- steps :
42
- - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
43
- with :
44
- persist-credentials : false
45
- - name : ✅ run scorecard analysis
46
- uses : ossf/scorecard-action@0864cf19026789058feabb7e87baa5f140aac736 # v2.3.1
47
- with :
48
- results_file : results.sarif
49
- results_format : sarif
50
- repo_token : ${{ secrets.SCORECARD_TOKEN }}
51
- publish_results : true
52
- - name : ⏫ upload sarif artifact
53
- uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
54
- with :
55
- name : SARIF file
56
- path : results.sarif
57
- retention-days : 5
58
- - name : 📦 upload sarif results
59
- uses : github/codeql-action/upload-sarif@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
60
- with :
61
- sarif_file : results.sarif
24
+ id-token : write
25
+ security-events : write
26
+ secrets : inherit
27
+ with :
28
+ # Publish results of Scorecard analysis
29
+ publish-results : true
You can’t perform that action at this time.
0 commit comments