Skip to content

Commit c7163e7

Browse files
committed
chore(ci): harden and upgrade
1 parent 0c950eb commit c7163e7

File tree

10 files changed

+30598
-2828
lines changed

10 files changed

+30598
-2828
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
version: 2
22
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: monthly
37
- package-ecosystem: npm
48
directory: /
59
schedule:

.github/workflows/dist.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
with:
27+
persist-credentials: false
2628

27-
- uses: actions/setup-node@v3
29+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2830
with:
2931
node-version: 16.x
3032

@@ -35,13 +37,13 @@ jobs:
3537
- id: diff
3638
run: |
3739
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -gt "0" ]; then
38-
echo "Detected uncommitted changes after build. See status below:"
40+
echo "Detected uncommitted changes after build. See status below:"
3941
git diff
4042
exit 1
4143
fi
4244
4345
# If index.js was different than expected, upload the expected version as an artifact
44-
- uses: actions/upload-artifact@v2
46+
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
4547
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
4648
with:
4749
name: dist

.github/workflows/test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
units:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15+
with:
16+
persist-credentials: false
1517
- run: npm ci
1618
- run: npm test

autodeploy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const { HttpClient } = require("@actions/http-client");
22
const {
33
BasicCredentialHandler,
44
PersonalAccessTokenCredentialHandler,
5-
} = require("@actions/http-client/auth");
5+
} = require("@actions/http-client/lib/auth");
66

77
function parseToken(token) {
88
const separator = token.indexOf(":");

0 commit comments

Comments
 (0)