Skip to content

Commit 8308853

Browse files
committed
chore: pin third-party actions to commit SHAs
Closes SonarCloud S7637 (×8). Pinning oven-sh/setup-bun, ibiqlik/action-yamllint, and sonarsource/sonarqube-scan-action to commit SHAs prevents tag-rewrite supply-chain attacks. Version comments retained for readability.
1 parent 54db6a5 commit 8308853

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-24.04
1515
steps:
1616
- uses: actions/checkout@v6.0.2
17-
- uses: ibiqlik/action-yamllint@v3.1.1
17+
- uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3.1.1
1818
with:
1919
strict: true
2020

@@ -26,7 +26,7 @@ jobs:
2626
bun-version: [1.2.23, 1.3.10]
2727
steps:
2828
- uses: actions/checkout@v6.0.2
29-
- uses: oven-sh/setup-bun@v2.2.0
29+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
3030
with:
3131
bun-version: ${{ matrix.bun-version }}
3232
- uses: actions/setup-node@v6
@@ -45,7 +45,7 @@ jobs:
4545
runs-on: ubuntu-24.04
4646
steps:
4747
- uses: actions/checkout@v6.0.2
48-
- uses: oven-sh/setup-bun@v2.2.0
48+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
4949
with:
5050
bun-version: 1.3.13
5151
- run: bun install --frozen-lockfile
@@ -55,7 +55,7 @@ jobs:
5555
runs-on: ubuntu-24.04
5656
steps:
5757
- uses: actions/checkout@v6.0.2
58-
- uses: oven-sh/setup-bun@v2.2.0
58+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
5959
with:
6060
bun-version: 1.3.13
6161
- run: bun install --frozen-lockfile
@@ -65,7 +65,7 @@ jobs:
6565
runs-on: ubuntu-24.04
6666
steps:
6767
- uses: actions/checkout@v6.0.2
68-
- uses: oven-sh/setup-bun@v2.2.0
68+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
6969
with:
7070
bun-version: 1.3.13
7171
- run: bun install --frozen-lockfile
@@ -77,13 +77,13 @@ jobs:
7777
- uses: actions/checkout@v6.0.2
7878
with:
7979
fetch-depth: 0
80-
- uses: oven-sh/setup-bun@v2.2.0
80+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
8181
with:
8282
bun-version: 1.3.13
8383
- run: bun install --frozen-lockfile
8484
- name: Run Tests
8585
run: bun run coverage
86-
- uses: sonarsource/sonarqube-scan-action@v8.0
86+
- uses: sonarsource/sonarqube-scan-action@59db25f34e16620e48ab4bb9e4a5dce155cb5432 # v8.0
8787
env:
8888
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8989
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
run: |
2121
sed -i "s/0.0.0/${GITHUB_REF_NAME}/g" package.json
2222
23-
- uses: oven-sh/setup-bun@v2.2.0
23+
- uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
2424
with:
2525
bun-version: 1.3.13
2626

0 commit comments

Comments
 (0)