Skip to content

Commit f61dfed

Browse files
committed
fix: pin 6 unpinned action(s),extract 1 unsafe expression(s) to env vars
Automated security fixes applied by Runner Guard (https://github.com/Vigilant-LLC/runner-guard). Changes: .github/workflows/label-commenter.yml | 2 +- .github/workflows/labeler.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/test.yml | 6 +++--- .github/workflows/update-major-tag.yml | 5 ++++- 5 files changed, 10 insertions(+), 7 deletions(-)
1 parent 4b09552 commit f61dfed

File tree

5 files changed

+10
-7
lines changed

5 files changed

+10
-7
lines changed

.github/workflows/label-commenter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
- uses: actions/checkout@v4
2323

2424
- name: Label Commenter
25-
uses: peaceiris/actions-label-commenter@v1
25+
uses: peaceiris/actions-label-commenter@f0dbbef043eb1b150b566db36b0bdc8b7f505579 # v1
2626
env:
2727
RUNNER_DEBUG: 1

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
permissions: {}
1111
steps:
1212
# https://github.com/peaceiris/actions-github-app-token
13-
- uses: peaceiris/actions-github-app-token@v1.1.6
13+
- uses: peaceiris/actions-github-app-token@652b86006ad2c113bdd5c478c9a98f359829847b # v1.1.6
1414
id: app
1515
with:
1616
app_id: ${{ secrets.GH_APP_ID }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313
# https://github.com/peaceiris/workflows/blob/main/create-release-npm/action.yml
14-
- uses: peaceiris/workflows/create-release-npm@v0.20.1
14+
- uses: peaceiris/workflows/create-release-npm@344651af76054dbb5c8231c3d0a18b109c029630 # v0.20.1
1515
env:
1616
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@v4
3131

32-
- uses: peaceiris/workflows/setup-node@v0.20.1
32+
- uses: peaceiris/workflows/setup-node@344651af76054dbb5c8231c3d0a18b109c029630 # v0.20.1
3333
with:
3434
node-version-file: ".nvmrc"
3535

@@ -66,7 +66,7 @@ jobs:
6666
name: coverage-${{ matrix.os }}
6767
path: coverage
6868

69-
- uses: codecov/codecov-action@v4
69+
- uses: codecov/codecov-action@b9fd7d16f6d7d1b5d2bec1a2887e65ceed900238 # v4
7070

7171
- name: Run ncc
7272
run: npm run build
@@ -79,7 +79,7 @@ jobs:
7979
8080
- name: Setup mdBook
8181
if: ${{ github.ref == 'refs/heads/main' }}
82-
uses: peaceiris/actions-mdbook@v1.2.0
82+
uses: peaceiris/actions-mdbook@adeb05db28a0c0004681db83893d56c0388ea9ea # v1.2.0
8383
with:
8484
mdbook-version: '0.4.5'
8585

.github/workflows/update-major-tag.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ jobs:
1515
run: |
1616
git config user.name "${GITHUB_ACTOR}"
1717
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
18-
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git"
18+
git remote set-url origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
1919
export TAG_NAME="${GITHUB_REF##refs/tags/}"
2020
export TAG_MAJOR="${TAG_NAME%%.*}"
2121
git tag --force -a "${TAG_MAJOR}" -m "Release ${TAG_NAME}"
2222
git push --force origin "${TAG_MAJOR}"
23+
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)