Skip to content

Commit c084fde

Browse files
authored
build: set the complete semver version of github action steps (#37)
1 parent b76e933 commit c084fde

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

.github/workflows/dependencies.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
steps:
1111
- name: Gather credentials
1212
id: credentials
13-
uses: actions/create-github-app-token@v2
13+
uses: actions/create-github-app-token@v2.0.2
1414
with:
1515
app-id: ${{ secrets.GH_APP_ID }}
1616
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
1717
- name: Checkout the repo
18-
uses: actions/checkout@v4
18+
uses: actions/checkout@v4.2.2
1919
with:
2020
ref: main
2121
token: ${{ steps.credentials.outputs.token }}
2222
- name: Install Golang
23-
uses: actions/setup-go@v5
23+
uses: actions/setup-go@v5.4.0
2424
with:
2525
go-version: "stable"
2626
- name: Get the latest version

.github/workflows/e2e_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Trigger CircleCI build-beta workflow.
16-
uses: promiseofcake/circleci-trigger-action@v1
16+
uses: promiseofcake/circleci-trigger-action@v1.7.8
1717
with:
1818
user-token: ${{ secrets.CIRCLECI_TOKEN }}
1919
project-slug: slackapi/slack-cli
2020
branch: ${{ github.event.inputs.branch }}
21-
payload: '{"run_local_build_test_workflow": true}'
21+
payload: '{"run_local_build_test_workflow": true}'

.github/workflows/license_check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
name: Check that license headers are in place
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
14+
- uses: actions/checkout@v4.2.2
1515
with:
1616
# Number of commits to fetch. 0 indicates all history for all branches and tags.
1717
# Default: 1

.github/workflows/sync-docs-from-cli-repo.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
branches:
66
- main
77
paths:
8-
- "docs/**"
8+
- "docs/**"
99
pull_request:
1010
branches:
1111
- main
1212
paths:
13-
- "docs/**"
13+
- "docs/**"
1414
workflow_dispatch:
1515

1616
jobs:
@@ -21,17 +21,17 @@ jobs:
2121
steps:
2222
- name: Generate a GitHub token
2323
id: ghtoken
24-
uses: actions/create-github-app-token@v2
24+
uses: actions/create-github-app-token@v2.0.2
2525
with:
2626
app-id: ${{ secrets.GH_APP_ID }}
2727
owner: slackapi
2828
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
2929

3030
- name: Checkout the tool repo (source)
31-
uses: actions/checkout@v4
31+
uses: actions/checkout@v4.2.2
3232

3333
- name: Checkout the docs site repo (destination)
34-
uses: actions/checkout@v4
34+
uses: actions/checkout@v4.2.2
3535
with:
3636
repository: slackapi/slackapi.github.io
3737
path: "docs_repo"
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Update docs in docs site repo
4242
run: |
43-
rsync -av --delete ./docs/ ./docs_repo/content/${{ github.event.repository.name }}/
43+
rsync -av --delete ./docs/ ./docs_repo/content/${{ github.event.repository.name }}/
4444
4545
- name: Install dependencies
4646
run: |
@@ -55,7 +55,7 @@ jobs:
5555
- name: Create a pull request
5656
if: ${{ github.event.pull_request.merged || github.event_name == 'workflow_dispatch' }}
5757
id: site-pr
58-
uses: peter-evans/create-pull-request@v7
58+
uses: peter-evans/create-pull-request@v7.0.8
5959
with:
6060
token: ${{ steps.ghtoken.outputs.token }}
6161
title: "From ${{ github.event.repository.name }}: ${{ github.event.pull_request.title || 'manual docs sync' }}"
@@ -71,4 +71,4 @@ jobs:
7171
- name: Output the pull request link
7272
if: ${{ steps.site-pr.outputs.pull-request-url }}
7373
run: |
74-
echo "Pull request created: ${{ steps.site-pr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY
74+
echo "Pull request created: ${{ steps.site-pr.outputs.pull-request-url }}" >> $GITHUB_STEP_SUMMARY

.github/workflows/tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Lints and Unit tests
1717
runs-on: macos-latest
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v4.2.2
2020
with:
2121
# Number of commits to fetch. 0 indicates all history for all branches and tags.
2222
# Default: 1
@@ -26,11 +26,11 @@ jobs:
2626
fetch-depth: 0
2727

2828
- name: Set up Go
29-
uses: actions/setup-go@v5
29+
uses: actions/setup-go@v5.4.0
3030
with:
3131
go-version: "1.24.2"
3232
- name: Lint
33-
uses: golangci/golangci-lint-action@v7
33+
uses: golangci/golangci-lint-action@v7.0.0
3434
with:
3535
version: latest
3636
args: --timeout=5m
@@ -39,7 +39,7 @@ jobs:
3939
run: make test
4040

4141
- name: Upload coverage to Codecov
42-
uses: codecov/codecov-action@v5
42+
uses: codecov/codecov-action@v5.4.0
4343
with:
4444
token: ${{ secrets.CODECOV_TOKEN }}
4545
files: ./coverage.out
@@ -50,13 +50,13 @@ jobs:
5050
needs: lint-test
5151
runs-on: macos-latest
5252
steps:
53-
- uses: actions/checkout@v4
53+
- uses: actions/checkout@v4.2.2
5454
- name: Set up Go
55-
uses: actions/setup-go@v5
55+
uses: actions/setup-go@v5.4.0
5656
with:
5757
go-version: "1.24.2"
5858
- name: Report health score
59-
uses: slackapi/slack-health-score@v0
59+
uses: slackapi/slack-health-score@v0.1.1
6060
with:
6161
extension: "go"
6262
codecov_token: ${{ secrets.ELAINES_CODECOV_API_TOKEN }}

0 commit comments

Comments
 (0)