Skip to content

Commit 8bd8575

Browse files
authored
Merge pull request #22 from athombv/ci/pin-reused-actions
ci: pin reused actions
2 parents d780dad + b00ccc3 commit 8bd8575

File tree

5 files changed

+44
-11
lines changed

5 files changed

+44
-11
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ jobs:
1616
runs-on: buildjet-2vcpu-ubuntu-2204-arm
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v4
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
2020

2121
- name: Setup Node.js
22-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
2323
with:
2424
node-version-file: '.nvmrc'
2525
registry-url: 'https://npm.pkg.github.com'

.github/workflows/lint.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,20 @@ on:
1313
jobs:
1414
lint:
1515
name: Lint
16-
uses: athombv/athom-github-workflow/.github/workflows/lint.yml@master
17-
secrets: inherit
16+
runs-on: buildjet-2vcpu-ubuntu-2204-arm
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
23+
with:
24+
node-version-file: '.nvmrc'
25+
registry-url: 'https://npm.pkg.github.com'
26+
27+
- name: Lint
28+
run: |
29+
npm ci --ignore-scripts --audit=false
30+
npm run lint
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.HOMEY_GITHUB_ACTIONS_BOT_PERSONAL_ACCESS_TOKEN }}

.github/workflows/npm-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
exit 1
3939
4040
- name: Checkout git repository
41-
uses: actions/checkout@v4
41+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
4242

4343
- name: Setup Node.js
44-
uses: actions/setup-node@v4
44+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
4545
with:
4646
node-version-file: '.nvmrc'
4747
registry-url: 'https://npm.pkg.github.com'

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
runs-on: buildjet-2vcpu-ubuntu-2204-arm
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
1616

1717
- name: Setup Node.js
18-
uses: actions/setup-node@v4
18+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
1919
with:
2020
node-version-file: '.nvmrc'
2121
registry-url: 'https://npm.pkg.github.com'
@@ -55,7 +55,7 @@ jobs:
5555
# Post a Slack notification on success/failure
5656
- name: Slack notify
5757
if: always()
58-
uses: innocarpe/actions-slack@v1
58+
uses: innocarpe/actions-slack@b2f50d9d8037ef8a1f77fa4659767747120124e4
5959
with:
6060
status: ${{ job.status }}
6161
success_text: '${{github.repository}} - Published ${{ env.package_name }}@${{ env.package_version }} to GitHub Packages Registry 🚀'

.github/workflows/test.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,23 @@ on:
1313
jobs:
1414
test:
1515
name: Test
16-
uses: athombv/athom-github-workflow/.github/workflows/test.yml@master
17-
secrets: inherit
16+
runs-on: buildjet-2vcpu-ubuntu-2204-arm
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e
23+
with:
24+
node-version-file: '.nvmrc'
25+
registry-url: 'https://npm.pkg.github.com'
26+
27+
- name: Build
28+
run: |
29+
npm ci --audit=false
30+
npm run build
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.HOMEY_GITHUB_ACTIONS_BOT_PERSONAL_ACCESS_TOKEN }}
33+
34+
- name: Test
35+
run: npm run test

0 commit comments

Comments
 (0)