Skip to content

Commit 36d9309

Browse files
authored
Add a new GitHub action to lint workflows (#329)
* Add lint-workflows.yml * Fix actions/checkout * Fix existing actions
1 parent 17fc33c commit 36d9309

4 files changed

Lines changed: 65 additions & 11 deletions

File tree

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Lint workflows
2+
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
5+
cancel-in-progress: true
6+
7+
on:
8+
push:
9+
branches: [main]
10+
paths:
11+
- ".github/workflows/**"
12+
- ".github/actions/**"
13+
pull_request:
14+
branches: ["**"]
15+
paths:
16+
- ".github/workflows/**"
17+
- ".github/actions/**"
18+
19+
permissions:
20+
contents: read
21+
22+
jobs:
23+
actionlint:
24+
name: actionlint
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 5
27+
steps:
28+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
29+
with:
30+
persist-credentials: false
31+
- uses: raven-actions/actionlint@205b530c5d9fa8f44ae9ed59f341a0db994aa6f8 # v2.1.2
32+
33+
zizmor:
34+
name: zizmor
35+
runs-on: ubuntu-latest
36+
timeout-minutes: 5
37+
permissions:
38+
security-events: write
39+
steps:
40+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
41+
with:
42+
persist-credentials: false
43+
- uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6

.github/workflows/lint.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions: {}
10+
911
jobs:
1012
lint:
1113
runs-on: ubuntu-latest
1214

1315
steps:
14-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
17+
with:
18+
persist-credentials: false
1519

16-
- name: Use Node.js 20.x
17-
uses: actions/setup-node@v4
20+
- name: Use Node.js
21+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
1822
with:
19-
node-version: 20.x
23+
node-version: 24
2024
cache: "npm"
2125

2226
- name: Install dependencies

.github/workflows/publish-every-commit.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,22 @@ name: Publish Any Commit
22
# from https://github.com/stackblitz-labs/pkg.pr.new?tab=readme-ov-file
33
on: [push]
44

5+
permissions: {}
6+
57
jobs:
68
build:
79
if: github.repository == 'get-convex/convex-auth'
810
runs-on: ubuntu-latest
911

1012
steps:
11-
- name: Checkout code
12-
uses: actions/checkout@v4
13+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
14+
with:
15+
persist-credentials: false
1316

1417
- run: corepack enable
15-
- uses: actions/setup-node@v4
18+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
1619
with:
17-
node-version: 18
20+
node-version: 24
1821
cache: "npm"
1922

2023
- name: Install dependencies

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,22 @@ on:
66
pull_request:
77
branches: [main]
88

9+
permissions: {}
10+
911
jobs:
1012
test:
1113
runs-on: ubuntu-latest
1214

1315
steps:
14-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
17+
with:
18+
persist-credentials: false
1519

16-
- uses: extractions/setup-just@v2
20+
- uses: extractions/setup-just@dd310ad5a97d8e7b41793f8ef055398d51ad4de6 # v2
1721

1822
# TODO this doesn't pass on Node.js 20 but it should, something with Next.js
1923
- name: Use Node.js 18.x
20-
uses: actions/setup-node@v4
24+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6
2125
with:
2226
node-version: 18.x
2327
cache: "npm"

0 commit comments

Comments
 (0)