Skip to content

Commit 8581b20

Browse files
authored
Update github action workflows. (#4807)
1 parent ee3133d commit 8581b20

3 files changed

Lines changed: 34 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: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,39 @@ name: "CodeQL"
1414

1515
on:
1616
push:
17-
branches: [main, test]
18-
pull_request:
19-
# The branches below must be a subset of the branches above
20-
branches: [main]
17+
branches:
18+
- main
19+
schedule:
20+
- cron: "30 5 * * 2" # Every Tuesday at 05:30 UTC
21+
22+
permissions:
23+
security-events: write # to upload SARIF results
24+
actions: read
25+
contents: read
26+
27+
concurrency:
28+
group: ${{ github.workflow }}-${{ github.ref }}
29+
cancel-in-progress: true
2130

2231
jobs:
2332
analyze:
2433
name: Analyze
2534
runs-on: ubuntu-latest
2635

36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
language: [javascript, python]
40+
2741
steps:
2842
- name: Checkout repository
2943
uses: actions/checkout@v6
3044

3145
# Initializes the CodeQL tools for scanning.
3246
- name: Initialize CodeQL
33-
uses: github/codeql-action/init@v3
47+
uses: github/codeql-action/init@v4
3448
with:
35-
languages: javascript, python
49+
languages: ${{ matrix.language }}
3650

3751
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@v3
52+
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)