Skip to content

Commit 04ba50e

Browse files
Pin workflows to protect against sec attacks (#294)
Pin workflows one more time to most recent. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 64a1064 commit 04ba50e

9 files changed

Lines changed: 16 additions & 12 deletions

File tree

.github/workflows/annotate_pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ jobs:
1919
- name: Checkout
2020
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121

22+
# external users: trunk-io/trunk-action@v1
2223
- name: Trunk Check
23-
# external users, use: trunk-io/trunk-action@v1
2424
uses: ./
2525
with:
2626
post-annotations: true

.github/workflows/cache_trunk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: Checkout
1919
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2020

21+
# external users: trunk-io/trunk-action@v1
2122
- name: Trunk Check
22-
# external users, use: trunk-io/trunk-action@v1
2323
uses: ./
2424
with:
2525
check-mode: populate_cache_only

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ jobs:
3838

3939
# Initializes the CodeQL tools for scanning.
4040
- name: Initialize CodeQL
41-
uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
41+
uses: github/codeql-action/init@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
4242
# Override language selection by uncommenting this and choosing your languages
4343
with:
4444
languages: javascript
4545

4646
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
4747
# If this step fails, then you should remove it and run the build manually (see below).
4848
- name: Autobuild
49-
uses: github/codeql-action/autobuild@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
49+
uses: github/codeql-action/autobuild@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
5050

5151
# ℹ️ Command-line programs to run using the OS shell.
5252
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -60,4 +60,4 @@ jobs:
6060
# make release
6161

6262
- name: Perform CodeQL Analysis
63-
uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
63+
uses: github/codeql-action/analyze@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4

.github/workflows/nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1717

18+
# external users: trunk-io/trunk-action@v1
1819
- name: Trunk Check
19-
# external users, use: trunk-io/trunk-action@v1
2020
uses: ./
2121
with:
2222
check-mode: all

.github/workflows/pr.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919

20+
# external users: trunk-io/trunk-action@v1
2021
- name: Trunk Check
21-
# external users, use: trunk-io/trunk-action@v1
2222
uses: ./
2323

2424
action_tests:

.github/workflows/scorecard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ jobs:
6565

6666
# Upload the results to GitHub's code scanning dashboard.
6767
- name: Upload to code-scanning
68-
uses: github/codeql-action/upload-sarif@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2
68+
uses: github/codeql-action/upload-sarif@68bde559dea0fdcac2102bfdf6230c5f70eb485e # v4.35.4
6969
with:
7070
sarif_file: results.sarif

.github/workflows/weekly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
app_id: ${{ secrets.TRUNK_OPEN_PR_APP_ID }}
2626
private_key: ${{ secrets.TRUNK_OPEN_PR_APP_PRIVATE_KEY }}
2727

28+
# external users: trunk-io/trunk-action/upgrade@v1
2829
- name: Trunk Upgrade
2930
id: upgrade
30-
# external users: use trunk-io/trunk-action/upgrade@v1
3131
uses: ./upgrade
3232
with:
3333
github-token: ${{ steps.generate-token.outputs.token }}

.pinact.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/suzuki-shunsuke/pinact/refs/heads/main/json-schema/pinact.json
2+
# pinact: https://github.com/suzuki-shunsuke/pinact — pin actions to SHA + semver comment.
3+
# Authenticated GitHub API is recommended (e.g. GITHUB_TOKEN=$(gh auth token) pinact run).
4+
version: 3

setup-env/action.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,14 @@ runs:
9999
100100
- name: Install pnpm
101101
if: env.PACKAGE_MANAGER == 'pnpm'
102-
uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6.0.0
102+
uses: pnpm/action-setup@0e279bb959325dab635dd2c09392533439d90093 # v6.0.8
103103
with:
104104
version: ${{ env.PNPM_VERSION }}
105105

106106
- name: Install Node dependencies
107107
id: setup_node
108108
if: env.PACKAGE_MANAGER && env.NODE_VERSION_FILE
109-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
109+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
110110
with:
111111
node-version-file: ${{ env.NODE_VERSION_FILE }}
112112
continue-on-error: true
@@ -127,7 +127,7 @@ runs:
127127
128128
- name: Install backup node version
129129
if: env.PACKAGE_MANAGER && env.NODE_VERSION_FILE && env.INSTALL_LATEST_NODE == 'true'
130-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
130+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
131131
with:
132132
node-version: latest
133133

0 commit comments

Comments
 (0)