Skip to content

Commit a3e53c4

Browse files
authored
Fix Grit install in GitHub action (#3755)
1 parent 1ff313c commit a3e53c4

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/grit.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,19 @@ jobs:
1616
with:
1717
persist-credentials: false
1818

19-
- name: grit-check
20-
uses: getgrit/github-action-check@c1ba5f99fd0e46f4cdc35d8dbc4622610ccc1784 # v0
19+
# Install Node so npm can be used to install Grit
20+
- name: Set up Node
21+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
22+
with:
23+
node-version: "22.13.0"
24+
25+
# The following steps were copied from github.com/honeycombio/github-action-check/blob/main/action.yaml with
26+
# slight simplifications.
27+
# The install method was changed from running https://docs.grit.io/install to using npm because the install URL
28+
# redirects to https://github.com/biomejs/gritql/releases/download/v0.0.2/grit-installer.sh, which returns 404.
29+
- name: Install Grit
30+
run: npm install --location=global @getgrit/cli@0.1.0-alpha.1743007075
31+
- name: Init Grit
32+
run: grit init
33+
- name: Run Grit check
34+
run: grit check --github-actions

.github/workflows/update-npm-audit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
persist-credentials: true
2020

2121
- name: Set up Node
22-
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # 5.0.0
22+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2323
with:
2424
node-version: "22.13.0"
2525
cache: "npm"

0 commit comments

Comments
 (0)