Skip to content

Commit 23145cb

Browse files
pozilclaude
andcommitted
ci: unified GH action version + used SemVer
Updated all GitHub Actions to latest versions with semantic versioning: - actions/cache: v6.0.0 - actions/checkout: v7.0.0 - actions/github-script: v9.0.0 - actions/setup-node: v4.0.0 - codecov/codecov-action: v7.0.0 - dependabot/fetch-metadata: v3.1.0 - forcedotcom/run-code-analyzer: v2.12.0 - peter-evans/create-pull-request: v8.1.1 - peter-evans/repository-dispatch: v4.0.1 - pmd/pmd-github-action: v2.0.0 - pozil/auto-assign-issue: v4.0.1 - pozil/codetour-watch: v4.0.0 - volta-cli/action: v5.0.0 Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 4a97a78 commit 23145cb

7 files changed

Lines changed: 26 additions & 26 deletions

File tree

.github/workflows/auto-assign.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: trailheadapps-Ubuntu
1010
steps:
1111
- name: 'Auto-assign issue'
12-
uses: pozil/auto-assign-issue@v2
12+
uses: pozil/auto-assign-issue@v4.0.1
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
assignees: ${{ vars.DEFAULT_ISSUE_ASSIGNEE }}

.github/workflows/ci-pr.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ jobs:
3535
steps:
3636
# Checkout the source code
3737
- name: 'Checkout source code'
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@v7.0.0
3939

4040
# Install Volta to enforce proper node and package manager versions
4141
- name: 'Install Volta'
42-
uses: volta-cli/action@v4
42+
uses: volta-cli/action@v5.0.0
4343

4444
# Cache node_modules to speed up the process
4545
- name: 'Restore node_modules cache'
4646
id: cache-npm
47-
uses: actions/cache@v4
47+
uses: actions/cache@v6.0.0
4848
with:
4949
path: node_modules
5050
key: npm-${{ hashFiles('**/package-lock.json') }}
@@ -77,7 +77,7 @@ jobs:
7777
# Run Code Analyzer
7878
- name: 'Run Code Analyzer'
7979
id: run-code-analyzer
80-
uses: forcedotcom/run-code-analyzer@v2
80+
uses: forcedotcom/run-code-analyzer@v2.12.0
8181
with:
8282
run-arguments: --workspace "force-app" --view detail --output-file "sca-results.csv" --config-file "code-analyzer.yml"
8383
results-artifact-name: code-analyzer-results
@@ -98,7 +98,7 @@ jobs:
9898

9999
# Upload code coverage data
100100
- name: 'Upload code coverage for LWC to Codecov.io'
101-
uses: codecov/codecov-action@v4
101+
uses: codecov/codecov-action@v7.0.0
102102
with:
103103
token: ${{ secrets.CODECOV_TOKEN }}
104104
flags: LWC
@@ -117,7 +117,7 @@ jobs:
117117
steps:
118118
- name: 'Fetch Dependabot metadata'
119119
id: dependabot
120-
uses: dependabot/fetch-metadata@v2
120+
uses: dependabot/fetch-metadata@v3.1.0
121121

122122
- name: 'Check auto merge conditions'
123123
id: auto-merge
@@ -147,7 +147,7 @@ jobs:
147147
steps:
148148
# Checkout the source code
149149
- name: 'Checkout source code'
150-
uses: actions/checkout@v4
150+
uses: actions/checkout@v7.0.0
151151

152152
# Install Salesforce CLI
153153
- name: 'Install Salesforce CLI'
@@ -200,7 +200,7 @@ jobs:
200200

201201
# Upload code coverage data
202202
- name: 'Upload code coverage for Apex to Codecov.io'
203-
uses: codecov/codecov-action@v4
203+
uses: codecov/codecov-action@v7.0.0
204204
with:
205205
token: ${{ secrets.CODECOV_TOKEN }}
206206
flags: Apex
@@ -216,7 +216,7 @@ jobs:
216216
steps:
217217
# Checkout the source code
218218
- name: 'Checkout source code'
219-
uses: actions/checkout@v4
219+
uses: actions/checkout@v7.0.0
220220

221221
# Check for package changes using git diff
222222
- name: 'Check for package changes'
@@ -233,7 +233,7 @@ jobs:
233233
234234
# Trigger packaging PR workflow
235235
- name: 'Trigger packaging PR workflow if needed'
236-
uses: peter-evans/repository-dispatch@v3
236+
uses: peter-evans/repository-dispatch@v4.0.1
237237
if: steps.checkForChanges.outputs.hasChanges == 'true'
238238
with:
239239
token: ${{ secrets.BOT_ACCESS_TOKEN }}

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,16 @@ jobs:
1818
steps:
1919
# Checkout the source code
2020
- name: 'Checkout source code'
21-
uses: actions/checkout@v4
21+
uses: actions/checkout@v7.0.0
2222

2323
# Install Volta to enforce proper node and package manager versions
2424
- name: 'Install Volta'
25-
uses: volta-cli/action@v4
25+
uses: volta-cli/action@v5.0.0
2626

2727
# Cache node_modules to speed up the process
2828
- name: 'Restore node_modules cache'
2929
id: cache-npm
30-
uses: actions/cache@v4
30+
uses: actions/cache@v6.0.0
3131
with:
3232
path: node_modules
3333
key: npm-${{ hashFiles('**/package-lock.json') }}
@@ -60,7 +60,7 @@ jobs:
6060
# Run Code Analyzer
6161
- name: 'Run Code Analyzer'
6262
id: run-code-analyzer
63-
uses: forcedotcom/run-code-analyzer@v2
63+
uses: forcedotcom/run-code-analyzer@v2.12.0
6464
with:
6565
run-arguments: --workspace "force-app" --view detail --output-file "sca-results.csv" --config-file "code-analyzer.yml"
6666
results-artifact-name: code-analyzer-results
@@ -81,7 +81,7 @@ jobs:
8181

8282
# Upload code coverage data
8383
- name: 'Upload code coverage for LWC to Codecov.io'
84-
uses: codecov/codecov-action@v4
84+
uses: codecov/codecov-action@v7.0.0
8585
with:
8686
token: ${{ secrets.CODECOV_TOKEN }}
8787
flags: LWC
@@ -93,7 +93,7 @@ jobs:
9393
steps:
9494
# Checkout the source code
9595
- name: 'Checkout source code'
96-
uses: actions/checkout@v4
96+
uses: actions/checkout@v7.0.0
9797

9898
# Install Salesforce CLI
9999
- name: 'Install Salesforce CLI'
@@ -140,7 +140,7 @@ jobs:
140140

141141
# Upload code coverage data
142142
- name: 'Upload code coverage for Apex to Codecov.io'
143-
uses: codecov/codecov-action@v4
143+
uses: codecov/codecov-action@v7.0.0
144144
with:
145145
token: ${{ secrets.CODECOV_TOKEN }}
146146
flags: Apex
@@ -156,7 +156,7 @@ jobs:
156156
steps:
157157
# Checkout the source code
158158
- name: 'Checkout source code'
159-
uses: actions/checkout@v4
159+
uses: actions/checkout@v7.0.0
160160

161161
# Check for package changes using git diff
162162
- name: 'Check for package changes'
@@ -173,7 +173,7 @@ jobs:
173173
174174
# Trigger packaging workflow if needed
175175
- name: 'Trigger packaging workflow if needed'
176-
uses: peter-evans/repository-dispatch@v3
176+
uses: peter-evans/repository-dispatch@v4.0.1
177177
if: steps.checkForChanges.outputs.hasChanges == 'true'
178178
with:
179179
token: ${{ secrets.BOT_ACCESS_TOKEN }}

.github/workflows/codetour-watch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
if: github.actor != 'trailheadapps-bot' && github.actor != 'dependabot[bot]'
1111
steps:
1212
- name: 'Checkout source code'
13-
uses: actions/checkout@v4
13+
uses: actions/checkout@v7.0.0
1414

1515
- name: 'Watch CodeTour changes'
16-
uses: pozil/codetour-watch@v3.0.0
16+
uses: pozil/codetour-watch@v4.0.0
1717

1818
skip-codetour-watch:
1919
if: github.actor == 'trailheadapps-bot' || github.actor == 'dependabot[bot]'

.github/workflows/new-issue-welcome.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
comment:
99
runs-on: trailheadapps-Ubuntu
1010
steps:
11-
- uses: actions/github-script@v6
11+
- uses: actions/github-script@v9.0.0
1212
with:
1313
script: |
1414
await github.rest.issues.createComment({

.github/workflows/packaging-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
2727
# Checkout the source code
2828
- name: 'Checkout source code'
29-
uses: actions/checkout@v4
29+
uses: actions/checkout@v7.0.0
3030

3131
# Store secret for dev hub
3232
- name: 'Populate auth file with DEVHUB_SFDX_URL secret'

.github/workflows/packaging.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
2222
# Checkout the source code
2323
- name: 'Checkout source code'
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@v7.0.0
2525
with:
2626
ref: ${{ github.event.client_payload.ref }}
2727

@@ -83,7 +83,7 @@ jobs:
8383
# Create PR for new package version
8484
- name: 'Create PR for new package version'
8585
id: create-pr
86-
uses: peter-evans/create-pull-request@v6
86+
uses: peter-evans/create-pull-request@v8.1.1
8787
with:
8888
title: 'Released new package version ${{ steps.createPackageVersion.outputs.packageVersionId }}'
8989
body: 'Released new package version ${{ steps.createPackageVersion.outputs.packageVersionId }}'

0 commit comments

Comments
 (0)