File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 3
3
push :
4
4
branches :
5
5
- main
6
+ pull_request :
7
+ branches :
8
+ - main
6
9
workflow_dispatch :
7
10
8
11
permissions : read-all
19
22
- uses : actions/checkout@v4
20
23
- uses : actions/setup-java@v4
21
24
with :
25
+ distribution : zulu
22
26
java-version : 11
23
27
24
28
- name : URL encode project name
Original file line number Diff line number Diff line change 14
14
- cron : ' 28 2 * * 4'
15
15
push :
16
16
branches : [ "main" ]
17
+ pull_request :
18
+ branches : [ "main" ]
17
19
18
20
# Declare default permissions as read only.
19
21
permissions : read-all
33
35
34
36
steps :
35
37
- name : " Checkout code"
36
- uses : actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
38
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
37
39
with :
38
40
persist-credentials : false
39
41
55
57
# For private repositories:
56
58
# - `publish_results` will always be set to `false`, regardless
57
59
# of the value entered here.
58
- publish_results : true
60
+ publish_results : ${{ github.event_name == 'push' }}
59
61
60
62
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
61
63
# format to the repository Actions tab.
68
70
69
71
# Upload the results to GitHub's code scanning dashboard.
70
72
- name : " Upload to code-scanning"
73
+ if : ${{ github.event_name == 'push' }}
71
74
uses : github/codeql-action/upload-sarif@47b3d888fe66b639e431abf22ebca059152f1eea # v3.24.5
72
75
with :
73
76
sarif_file : results.sarif
You can’t perform that action at this time.
0 commit comments