File tree Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Expand file tree Collapse file tree 3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change 3
3
name : Check API compatibility
4
4
5
5
on : pull_request
6
+ permissions :
7
+ contents : read # to fetch code (actions/checkout)
6
8
7
9
jobs :
8
10
check-api-compatibility :
Original file line number Diff line number Diff line change 1
1
name : CIFuzz
2
2
on : [pull_request]
3
+ permissions : {}
4
+
3
5
jobs :
4
6
Fuzzing :
5
7
runs-on : ubuntu-latest
8
+ permissions :
9
+ security-events : write
6
10
steps :
7
11
- name : Build Fuzzers
8
12
id : build
13
+ # Cannot be pinned to commit because there are no releases, see https://github.com/google/oss-fuzz/issues/6836
9
14
uses : google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
10
15
with :
11
16
oss-fuzz-project-name : ' gson'
12
17
dry-run : false
13
18
language : jvm
14
19
- name : Run Fuzzers
20
+ # Cannot be pinned to commit because there are no releases, see https://github.com/google/oss-fuzz/issues/6836
15
21
uses : google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
16
22
with :
17
23
oss-fuzz-project-name : ' gson'
18
24
fuzz-seconds : 600
19
25
dry-run : false
26
+ output-sarif : true
20
27
- name : Upload Crash
21
28
uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
22
29
if : failure() && steps.build.outcome == 'success'
23
30
with :
24
31
name : artifacts
25
32
path : ./out/artifacts
33
+ - name : Upload Sarif
34
+ if : always() && steps.build.outcome == 'success'
35
+ uses : github/codeql-action/upload-sarif@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
36
+ with :
37
+ # Path to SARIF file relative to the root of the repository
38
+ sarif_file : cifuzz-sarif/results.sarif
39
+ checkout_path : cifuzz-sarif
Original file line number Diff line number Diff line change 13
13
14
14
jobs :
15
15
analyze :
16
- name : Analyze
16
+ name : Analyze (${{ matrix.language }})
17
17
runs-on : ubuntu-latest
18
18
permissions :
19
19
security-events : write
20
20
21
21
strategy :
22
22
fail-fast : false
23
23
matrix :
24
- language : [ 'java' ]
24
+ include :
25
+ - language : java
26
+ build-mode : manual
27
+ # GitHub Actions
28
+ - language : actions
29
+ build-mode : none
25
30
26
31
steps :
27
32
- name : Checkout repository
28
33
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29
34
30
35
- name : Set up JDK 17
36
+ if : ${{ matrix.language == 'java' }}
31
37
uses : actions/setup-java@c5195efecf7bdfc987ee8bae7a71cb8b11521c00 # v4.7.1
32
38
with :
33
39
distribution : ' temurin'
@@ -39,15 +45,19 @@ jobs:
39
45
uses : github/codeql-action/init@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
40
46
with :
41
47
languages : ${{ matrix.language }}
48
+ build-mode : ${{ matrix.build-mode }}
42
49
# Run all security queries and maintainability and reliability queries
43
50
queries : +security-and-quality
44
51
45
52
# Only compile main sources, but ignore test sources because findings for them might not
46
53
# be that relevant (though GitHub security view also allows filtering by source type)
47
54
# Can replace this with github/codeql-action/autobuild action to run complete build
48
- - name : Compile sources
55
+ - name : Compile sources (Java)
56
+ if : ${{ matrix.language == 'java' }}
49
57
run : |
50
58
mvn compile --batch-mode --no-transfer-progress
51
59
52
60
- name : Perform CodeQL Analysis
53
61
uses : github/codeql-action/analyze@181d5eefc20863364f96762470ba6f862bdef56b # v3.29.2
62
+ with :
63
+ category : " /language:${{ matrix.language }}"
You can’t perform that action at this time.
0 commit comments