Skip to content

Commit 78442e5

Browse files
chore: update global workflows (#172)
1 parent 60ccde1 commit 78442e5

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ jobs:
160160
# yamllint disable-line rule:line-length
161161
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
162162
# queries: security-extended,security-and-quality
163+
config: |
164+
paths-ignore:
165+
- node_modules
166+
- third-party
163167
164168
# Pre autobuild
165169
# create a file named .codeql-prebuild-${{ matrix.language }}.sh in the root of your repository
@@ -183,3 +187,26 @@ jobs:
183187
uses: github/codeql-action/analyze@v3
184188
with:
185189
category: "/language:${{matrix.language}}"
190+
output: sarif-results
191+
upload: failure-only
192+
193+
- name: filter-sarif
194+
uses: advanced-security/filter-sarif@v1
195+
with:
196+
input: sarif-results/${{ matrix.language }}.sarif
197+
output: sarif-results/${{ matrix.language }}.sarif
198+
patterns: |
199+
-node_modules/**
200+
-third\-party/**
201+
202+
- name: Upload SARIF
203+
uses: github/codeql-action/upload-sarif@v3
204+
with:
205+
sarif_file: sarif-results/${{ matrix.language }}.sarif
206+
207+
- name: Upload loc as a Build Artifact
208+
uses: actions/upload-artifact@v4
209+
with:
210+
name: sarif-results-${{ matrix.language }}-${{ runner.os }}
211+
path: sarif-results
212+
retention-days: 1

0 commit comments

Comments
 (0)