Skip to content

Commit c8795df

Browse files
chore: update global workflows (#15)
1 parent 8e14fcd commit c8795df

File tree

5 files changed

+35
-132
lines changed

5 files changed

+35
-132
lines changed

.github/pr_release_template.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

.github/workflows/auto-create-pr.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/automerge.yml

Lines changed: 0 additions & 64 deletions
This file was deleted.

.github/workflows/codeql.yml

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ name: "CodeQL"
99

1010
on:
1111
push:
12-
branches: ["master", "nightly"]
12+
branches: ["master"]
1313
pull_request:
14-
branches: ["master", "nightly"]
14+
branches: ["master"]
1515
schedule:
1616
- cron: '00 12 * * 0' # every Sunday at 12:00 UTC
1717

@@ -140,9 +140,12 @@ jobs:
140140
submodules: recursive
141141

142142
- name: Setup msys2
143-
if: runner.os == 'Windows'
143+
if: >-
144+
runner.os == 'Windows' &&
145+
matrix.language == 'cpp'
144146
uses: msys2/setup-msys2@v2
145147
with:
148+
msystem: ucrt64
146149
update: true
147150

148151
# Initializes the CodeQL tools for scanning.
@@ -157,6 +160,10 @@ jobs:
157160
# yamllint disable-line rule:line-length
158161
# 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
159162
# queries: security-extended,security-and-quality
163+
config: |
164+
paths-ignore:
165+
- node_modules
166+
- third-party
160167
161168
# Pre autobuild
162169
# create a file named .codeql-prebuild-${{ matrix.language }}.sh in the root of your repository
@@ -180,3 +187,26 @@ jobs:
180187
uses: github/codeql-action/analyze@v3
181188
with:
182189
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

.github/workflows/yaml-lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ name: yaml lint
99

1010
on:
1111
pull_request:
12-
branches: [master, nightly]
12+
branches: [master]
1313
types: [opened, synchronize, reopened]
1414

1515
concurrency:
16-
group: ${{ github.workflow }}-${{ github.ref }}
16+
group: "${{ github.workflow }}-${{ github.ref }}"
1717
cancel-in-progress: true
1818

1919
jobs:

0 commit comments

Comments
 (0)