Skip to content

Commit 0a8f43a

Browse files
committed
Update workflows
Signed-off-by: paulober <[email protected]>
1 parent aab80b9 commit 0a8f43a

File tree

3 files changed

+47
-48
lines changed

3 files changed

+47
-48
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -38,49 +38,48 @@ jobs:
3838
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3939

4040
steps:
41-
- name: Checkout repository
42-
uses: actions/checkout@v4
43-
44-
- run: sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc
41+
- name: Checkout repository
42+
uses: actions/checkout@v5
43+
with:
44+
persist-credentials: false
4545

46-
# Initializes the CodeQL tools for scanning.
47-
- name: Initialize CodeQL
48-
uses: github/codeql-action/init@v3
49-
with:
50-
languages: ${{ matrix.language }}
51-
# If you wish to specify custom queries, you can do so here or in a config file.
52-
# By default, queries listed here will override any specified in a config file.
53-
# Prefix the list here with "+" to use these queries and those in the config file.
54-
55-
# 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
56-
# queries: security-extended,security-and-quality
46+
- run: sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc
5747

58-
59-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
60-
# If this step fails, then you should remove it and run the build manually (see below)
61-
- name: Autobuild
62-
uses: github/codeql-action/autobuild@v3
63-
64-
- name: Install Dependencies for custom build
65-
shell: bash
66-
run: |
67-
sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc
68-
npm ci --no-audit
69-
env:
70-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
# Initializes the CodeQL tools for scanning.
49+
- name: Initialize CodeQL
50+
uses: github/codeql-action/init@v3
51+
with:
52+
languages: ${{ matrix.language }}
53+
# If you wish to specify custom queries, you can do so here or in a config file.
54+
# By default, queries listed here will override any specified in a config file.
55+
# Prefix the list here with "+" to use these queries and those in the config file.
56+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
7157

72-
- name: Custom build
73-
run: npm run compile
58+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
59+
# If this step fails, then you should remove it and run the build manually (see below)
60+
- name: Autobuild
61+
uses: github/codeql-action/autobuild@v3
7462

75-
# ℹ️ Command-line programs to run using the OS shell.
76-
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
- name: Install Dependencies for custom build
64+
shell: bash
65+
run: |
66+
sed -i '1i//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}' .npmrc
67+
npm ci --no-audit
68+
env:
69+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7770

78-
# If the Autobuild fails above, remove it and uncomment the following three lines.
79-
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
71+
- name: Custom build
72+
run: npm run compile
8073

81-
# - run: |
82-
# echo "Run, Build Application using script"
83-
# ./location_of_script_within_repo/buildscript.sh
74+
# ℹ️ Command-line programs to run using the OS shell.
75+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
8476

85-
- name: Perform CodeQL Analysis
86-
uses: github/codeql-action/analyze@v3
77+
# If the Autobuild fails above, remove it and uncomment the following three lines.
78+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
79+
80+
# - run: |
81+
# echo "Run, Build Application using script"
82+
# ./location_of_script_within_repo/buildscript.sh
83+
84+
- name: Perform CodeQL Analysis
85+
uses: github/codeql-action/analyze@v3

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
runs-on: ubuntu-latest
2626

2727
steps:
28-
- uses: actions/checkout@v4
28+
- uses: actions/checkout@v5
2929

30-
- name: Setup Node v20.14.0
31-
uses: actions/setup-node@v4
30+
- name: Setup Node v22.17.0
31+
uses: actions/setup-node@v5
3232
with:
33-
node-version: "20.14.0"
33+
node-version: "22.17.0"
3434
registry-url: "https://npm.pkg.github.com"
3535
scope: "@paulober"
3636
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ permissions:
1212

1313
jobs:
1414
release:
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@v5
1919

20-
- name: Setup Node v20.9.0
21-
uses: actions/setup-node@v4
20+
- name: Setup Node v22.17.0
21+
uses: actions/setup-node@v5
2222
with:
23-
node-version: '20.14.0'
23+
node-version: '22.17.0'
2424
registry-url: "https://npm.pkg.github.com"
2525
scope: "@paulober"
2626
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)