Skip to content

Commit 4e501cf

Browse files
authored
Use commit SHA instead of branch name for third-party actions (#1797)
1 parent a2e1b6a commit 4e501cf

7 files changed

Lines changed: 22 additions & 11 deletions

File tree

.github/workflows/add-issue-to-project.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ jobs:
1212
name: Assign to One Project
1313
steps:
1414
- name: Assign triaged issues to app-services project
15-
uses: srggrs/assign-one-project-github-action@1.3.1
15+
# 1.3.1
16+
uses: srggrs/assign-one-project-github-action@65a8ddab497df42ef268001e67bbf976f8fd39e1
1617
if: |
1718
contains(github.event.issue.labels.*.name, 'triage/accepted')
1819
with:

.github/workflows/changelog.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,15 @@ jobs:
1818

1919
-
2020
name: Install git-chglog
21-
uses: craicoverflow/install-git-chglog@v1
21+
# v1
22+
uses: craicoverflow/install-git-chglog@6d338c1d96dcbf12a2115fbe8e5b9817293aae33
2223

2324
-
2425
name: Generate a CHANGELOG
2526
run: git-chglog -o CHANGELOG.md
2627

27-
- uses: stefanzweifel/git-auto-commit-action@v4
28+
# v4
29+
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
2830
with:
2931
branch: main
3032
file_pattern: CHANGELOG.md

.github/workflows/commit_lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ jobs:
1111
- uses: actions/checkout@v3
1212
with:
1313
fetch-depth: 0
14-
- uses: wagoid/commitlint-github-action@v4
14+
# v4
15+
- uses: wagoid/commitlint-github-action@416045160973f9fff174ac6698412cfe7181c3f3

.github/workflows/gobuild.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
- name: Checkout code
2626
uses: actions/checkout@v3
2727
- name: golangci-lint
28-
uses: golangci/golangci-lint-action@v3
28+
# v3
29+
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5
2930
with:
3031
version: v1.48.0
3132
# skip-go-installation: true

.github/workflows/issue-labeler.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ jobs:
77
triage:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: github/issue-labeler@v2.5
10+
# v2.5
11+
- uses: github/issue-labeler@6ca237433dbbb8e475241b7f38f4600d9e296c57
1112
with:
1213
repo-token: "${{ secrets.PROJECT_MANAGER_TOKEN }}"
1314
configuration-path: .github/labeler.yml

.github/workflows/modular-docs-publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
- run: make generate-downstream-docs
2020
name: Generate generate-downstream-docs
2121
- name: Deploy
22-
uses: JamesIves/github-pages-deploy-action@v4.4.1
22+
# v4.4.1
23+
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
2324
with:
2425
branch: modular-docs # The branch the action should deploy to.
2526
folder: dist # The folder the action should deploy.

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
core.setOutput('version', version)
3737
-
3838
name: Install git-chglog
39-
uses: craicoverflow/install-git-chglog@v1
39+
# v1
40+
uses: craicoverflow/install-git-chglog@6d338c1d96dcbf12a2115fbe8e5b9817293aae33
4041
-
4142
name: Generate release notes
4243
if: steps.check-tag.outputs.prerelease == 'false'
@@ -48,7 +49,8 @@ jobs:
4849
run: cat RELEASE_NOTES.md
4950

5051
- name: Run GoReleaser
51-
uses: goreleaser/goreleaser-action@v3
52+
# v3
53+
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757
5254
if: steps.check-tag.outputs.prerelease == 'false'
5355
with:
5456
version: latest
@@ -57,7 +59,8 @@ jobs:
5759
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5860

5961
- name: Run GoReleaser on pre-release
60-
uses: goreleaser/goreleaser-action@v3
62+
# v3
63+
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757
6164
if: steps.check-tag.outputs.prerelease == 'true'
6265
with:
6366
version: latest
@@ -67,7 +70,8 @@ jobs:
6770

6871
- name: Notify Guides of new version
6972
if: steps.check-tag.outputs.prerelease == 'false'
70-
uses: peter-evans/repository-dispatch@v2
73+
# v2
74+
uses: peter-evans/repository-dispatch@26b39ed245ab8f31526069329e112ab2fb224588
7175
with:
7276
token: ${{ secrets.APP_SERVICES_CI }}
7377
repository: redhat-developer/app-services-guides

0 commit comments

Comments
 (0)