Skip to content

Commit 127c81e

Browse files
committed
Update github actions
1 parent 9d9b666 commit 127c81e

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,18 @@ on:
1414
schedule:
1515
- cron: '0 17 * * 6'
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
analyze:
1922
name: Analyze
2023
runs-on: ubuntu-latest
2124

25+
permissions:
26+
contents: read
27+
security-events: write
28+
2229
strategy:
2330
fail-fast: false
2431
matrix:
@@ -30,11 +37,12 @@ jobs:
3037

3138
steps:
3239
- name: Checkout repository
33-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
3441
with:
3542
# We must fetch at least the immediate parents so that if this is
3643
# a pull request then we can checkout the head.
3744
fetch-depth: 2
45+
persist-credentials: false
3846

3947
# If this run was triggered by a pull request event, then checkout
4048
# the head of the pull request instead of the merge commit.
@@ -43,7 +51,7 @@ jobs:
4351

4452
# Initializes the CodeQL tools for scanning.
4553
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
54+
uses: github/codeql-action/init@v3
4755
with:
4856
languages: ${{ matrix.language }}
4957
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -54,7 +62,7 @@ jobs:
5462
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5563
# If this step fails, then you should remove it and run the build manually (see below)
5664
- name: Autobuild
57-
uses: github/codeql-action/autobuild@v2
65+
uses: github/codeql-action/autobuild@v3
5866

5967
# ℹ️ Command-line programs to run using the OS shell.
6068
# 📚 https://git.io/JvXDl
@@ -68,4 +76,4 @@ jobs:
6876
# make release
6977

7078
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v2
79+
uses: github/codeql-action/analyze@v3

.github/workflows/node.js.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,19 +9,27 @@ on:
99
pull_request:
1010
branches: [ master ]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417

1518
runs-on: ubuntu-latest
1619

20+
permissions:
21+
contents: read
22+
1723
strategy:
1824
matrix:
1925
node-version: [14.x, 16.x, 18.x, 20.x, 22.x]
2026

2127
steps:
22-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
29+
with:
30+
persist-credentials: false
2331
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v3
32+
uses: actions/setup-node@v4
2533
with:
2634
node-version: ${{ matrix.node-version }}
2735
- run: npm ci

0 commit comments

Comments
 (0)