Skip to content

Commit 75d6fc2

Browse files
committed
Update github action workflows.
1 parent 8f3bbfd commit 75d6fc2

3 files changed

Lines changed: 35 additions & 14 deletions

File tree

.github/release-drafter.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ version-resolver:
1515
- "patch"
1616
default: patch
1717
categories:
18+
- title: "🔒 Security"
19+
labels:
20+
- "Type: Security"
21+
- "security"
1822
- title: "🚀 Features"
1923
labels:
2024
- "Type: Feature"

.github/workflows/codeql-analysis.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,41 @@
1313
name: "CodeQL"
1414

1515
on:
16-
push:
17-
branches: [main, test]
1816
pull_request:
19-
# The branches below must be a subset of the branches above
20-
branches: [main]
17+
branches:
18+
- main
19+
push:
20+
branches:
21+
- main
22+
23+
permissions:
24+
security-events: write # to upload SARIF results
25+
actions: read
26+
contents: read
27+
28+
concurrency:
29+
group: ${{ github.workflow }}-${{ github.ref }}
30+
cancel-in-progress: true
2131

2232
jobs:
2333
analyze:
2434
name: Analyze
2535
runs-on: ubuntu-latest
2636

37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
language: [javascript, python]
41+
2742
steps:
2843
- name: Checkout repository
2944
uses: actions/checkout@v6
3045

3146
# Initializes the CodeQL tools for scanning.
3247
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v3
48+
uses: github/codeql-action/init@v4
3449
with:
35-
languages: javascript, python
50+
languages: ${{ matrix.language }}
3651

3752
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@v3
53+
uses: github/codeql-action/analyze@v4

.github/workflows/release-drafter.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@ name: Release Drafter
22

33
on:
44
push:
5-
# branches to consider in the event; optional, defaults to all
65
branches:
76
- main
8-
# pull_request event is required only for autolabeler
9-
pull_request:
10-
# Only following types are handled by the action, but one can default to all as well
11-
types: [opened, reopened, synchronize]
127

138
workflow_dispatch:
149

10+
permissions:
11+
contents: write
12+
pull-requests: read
13+
14+
concurrency:
15+
group: release-drafter
16+
cancel-in-progress: false
17+
1518
jobs:
1619
update_release_draft:
1720
runs-on: ubuntu-latest
1821
steps:
19-
# Drafts your next Release notes as Pull Requests are merged into "main"
20-
- uses: release-drafter/release-drafter@v6
22+
- uses: release-drafter/release-drafter@v7
2123
env:
2224
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)