Skip to content

Commit a7da7d1

Browse files
authored
Merge pull request #597 from sir-gon/develop
[CONFIG] [Github Actions] Now use fixed version of Github Actions ima…
2 parents 1a2391a + f276734 commit a7da7d1

9 files changed

+52
-26
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,25 @@ on: # yamllint disable-line rule:truthy
3434

3535
jobs:
3636
analyze:
37-
name: Analyze
37+
name: Analyze (${{ matrix.language }})
38+
# Runner size impacts CodeQL analysis time. To learn more, please see:
39+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
40+
# - https://gh.io/supported-runners-and-hardware-resources
41+
# - https://gh.io/using-larger-runners (GitHub.com only)
42+
# Consider using larger runners or machines with greater resources
43+
# for possible analysis time improvements.
3844
runs-on:
39-
${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
45+
${{ (matrix.language == 'swift' && 'macos-14') || 'ubuntu-24.04' }}
4046
permissions:
47+
# required for all workflows
48+
security-events: write
49+
50+
# required to fetch internal or private CodeQL packs
51+
packages: read
52+
53+
# only required for workflows in private repositories
4154
actions: read
4255
contents: read
43-
security-events: write
4456

4557
strategy:
4658
fail-fast: false

.github/workflows/docker-image.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
build:
1919
name: "Build Docker images"
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-24.04
2121
steps:
2222
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2323

@@ -72,7 +72,7 @@ jobs:
7272

7373
lint:
7474
name: "Run in docker: LINT"
75-
runs-on: ubuntu-latest
75+
runs-on: ubuntu-24.04
7676
needs: build
7777
steps:
7878
- name: Download artifact
@@ -92,7 +92,7 @@ jobs:
9292
9393
test:
9494
name: "Run in docker: TEST"
95-
runs-on: ubuntu-latest
95+
runs-on: ubuntu-24.04
9696
needs: build
9797
steps:
9898
- name: Download artifact
@@ -112,7 +112,7 @@ jobs:
112112
113113
security:
114114
name: "Snyk Container"
115-
runs-on: ubuntu-latest
115+
runs-on: ubuntu-24.04
116116
needs: build
117117
steps:
118118
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
@@ -155,7 +155,7 @@ jobs:
155155
sarif_file: 'snyk.sarif'
156156
scan:
157157
name: "Trivy"
158-
runs-on: ubuntu-latest
158+
runs-on: ubuntu-24.04
159159
needs: build
160160
steps:
161161
- name: Download artifact

.github/workflows/eslint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ on: # yamllint disable-line rule:truthy
3434
jobs:
3535
eslint:
3636
name: Run eslint scanning
37-
runs-on: ubuntu-latest
37+
runs-on: ${{ matrix.os }}
38+
strategy:
39+
matrix:
40+
os: ["ubuntu-24.04", "macos-14", "windows-2022"]
41+
node-version: [18.x, 20.x, 22.x]
42+
# See supported Node.js release schedule
43+
# at https://nodejs.org/en/about/releases/
3844
permissions:
3945
contents: read
4046
security-events: write

.github/workflows/gitleaks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ on: # yamllint disable-line rule:truthy
2020
jobs:
2121
scan:
2222
name: gitleaks
23-
runs-on: ubuntu-latest
23+
runs-on: ubuntu-24.04
2424
steps:
2525
- uses: actions/checkout@v4
2626
with:

.github/workflows/markdown-lint.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
---
2-
32
name: Markdown Lint
43

54
on: # yamllint disable-line rule:truthy
@@ -10,19 +9,27 @@ on: # yamllint disable-line rule:truthy
109
branches: ["main"]
1110
workflow_dispatch:
1211

12+
permissions: read-all
13+
1314
jobs:
14-
lint:
15+
markdownlint:
1516
name: Markdown Lint
16-
runs-on: ubuntu-latest
17+
runs-on: ubuntu-24.04
18+
19+
strategy:
20+
matrix:
21+
node-version: [22.x]
22+
# See supported Node.js release schedule
23+
# at https://nodejs.org/en/about/releases/
1724

1825
steps:
1926
- name: Checkout repository
2027
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2128

22-
- name: Set up Node.js
29+
- name: Set up Node.js ${{ matrix.node-version }}
2330
uses: actions/setup-node@v4
2431
with:
25-
node-version: 22.x
32+
node-version: ${{ matrix.node-version }}
2633

2734
- name: Install dependencies
2835
run: npm install -g markdownlint-cli

.github/workflows/node-coverage.js.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@ on: # yamllint disable-line rule:truthy
1010
workflow_dispatch:
1111

1212
jobs:
13-
build:
14-
runs-on: ubuntu-latest
13+
coverage:
14+
name: NodeJS CI Coverage
15+
runs-on: ubuntu-24.04
1516

1617
steps:
1718
- name: Checkout repository

.github/workflows/node.js.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ on: # yamllint disable-line rule:truthy
1212

1313
jobs:
1414
build:
15-
runs-on: ubuntu-latest
15+
name: NodeJS Jest CI Test
16+
runs-on: ${{ matrix.os }}
1617
strategy:
1718
matrix:
18-
os: [
19-
"windows-latest",
20-
"ubuntu-latest",
21-
"macOS-latest"
19+
os: ["ubuntu-24.04", "macos-14"
20+
# , "windows-2022"
2221
]
2322
node-version: [18.x, 20.x, 22.x]
2423
# See supported Node.js release schedule
@@ -36,8 +35,8 @@ jobs:
3635
- name: Install dependencies
3736
run: npm ci --verbose
3837

39-
- name: Lint
40-
run: npm run lint
38+
# - name: Lint
39+
# run: npm run lint
4140

4241
- name: Run the tests
4342
run: npm run jest:ci

.github/workflows/snyk-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on: # yamllint disable-line rule:truthy
1717

1818
jobs:
1919
security:
20-
runs-on: ubuntu-latest
20+
runs-on: ubuntu-24.04
2121
steps:
2222
- uses: actions/checkout@master
2323
- name: Run Snyk to check for vulnerabilities

.github/workflows/yamllint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on: # yamllint disable-line rule:truthy
1111

1212
jobs:
1313
lint:
14-
runs-on: ubuntu-latest
14+
name: YAML lint
15+
runs-on: ubuntu-24.04
1516
steps:
1617
- name: Checkout repository
1718
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

0 commit comments

Comments
 (0)