File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1414 - cron : ' 28 2 * * 4'
1515 push :
1616 branches : [ "main" ]
17+ pull_request :
18+ branches : [ "main" ]
1719
1820# Declare default permissions as read only.
1921permissions : read-all
5557 # For private repositories:
5658 # - `publish_results` will always be set to `false`, regardless
5759 # of the value entered here.
58- publish_results : true
60+ publish_results : ${{ github.event_name == 'push' }}
5961
6062 # Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
6163 # format to the repository Actions tab.
6870
6971 # Upload the results to GitHub's code scanning dashboard.
7072 - name : " Upload to code-scanning"
73+ if : ${{ github.event_name == 'push' }}
7174 uses : github/codeql-action/upload-sarif@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
7275 with :
7376 sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments