File tree 1 file changed +8
-8
lines changed
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -35,20 +35,20 @@ jobs:
35
35
- name : Autobuild
36
36
uses : github/codeql-action/autobuild@v3
37
37
38
-
39
-
40
- # ✅ Step 4: Run Custom Queries from queries/ Directory
38
+ # ✅ Step 3: Run CodeQL Queries Correctly (No "command not found" Errors)
41
39
- name : Run CodeQL Queries
42
- run : |
43
- codeql query run --database="$CODEQL_DATABASE" .github/queries/method.ql --output=results.bqrs
44
- codeql bqrs decode --format=csv results.bqrs > result.txt
40
+ uses : github/codeql-action/analyze@v3
41
+ with :
42
+ category : " custom-query"
43
+ queries : .github/queries
45
44
46
- # ✅ Step 5 : Upload Query Results as an Artifact
45
+ # ✅ Step 4 : Upload Query Results as an Artifact
47
46
- name : Upload Query Results
48
47
uses : actions/upload-artifact@v4
49
48
with :
50
49
name : codeql-query-results
51
- path : result.txt
50
+ path : security-results.sarif
51
+
52
52
53
53
54
54
You can’t perform that action at this time.
0 commit comments