File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change 1212 schedule :
1313 - cron : ' 16 21 * * 1'
1414 push :
15- branches : [ "main" ]
15+ branches :
16+ - test-scorecard-pr
17+ - main
18+ - notebooks-v1
19+ - notebooks-v2
20+ # Allow manual triggering with branch selection
21+ workflow_dispatch :
22+ inputs :
23+ branch :
24+ description : ' Branch to scan'
25+ required : true
26+ default : ' main'
27+ type : choice
28+ options :
29+ - main
30+ - notebooks-v1
31+ - notebooks-v2
1632
1733# Declare default permissions as read only.
1834permissions : read-all
3248
3349 steps :
3450 - name : " Checkout code"
35- uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
51+ id : checkout
52+ uses : actions/checkout@v4
3653 with :
3754 persist-credentials : false
3855
@@ -54,14 +71,14 @@ jobs:
5471 # For private repositories:
5572 # - `publish_results` will always be set to `false`, regardless
5673 # of the value entered here.
57- publish_results : true
74+ publish_results : false
5875
5976 # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6077 # format to the repository Actions tab.
6178 - name : " Upload artifact"
6279 uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
6380 with :
64- name : SARIF file
81+ name : SARIF file - ${{ github.event.inputs.branch || 'main' }}
6582 path : results.sarif
6683 retention-days : 5
6784
You can’t perform that action at this time.
0 commit comments