Skip to content

Commit

Permalink
Use commit SHA instead of branch name for third-party actions (#1797)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaTP authored Feb 14, 2023
1 parent a2e1b6a commit 4e501cf
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/add-issue-to-project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
name: Assign to One Project
steps:
- name: Assign triaged issues to app-services project
uses: srggrs/[email protected]
# 1.3.1
uses: srggrs/assign-one-project-github-action@65a8ddab497df42ef268001e67bbf976f8fd39e1
if: |
contains(github.event.issue.labels.*.name, 'triage/accepted')
with:
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ jobs:

-
name: Install git-chglog
uses: craicoverflow/install-git-chglog@v1
# v1
uses: craicoverflow/install-git-chglog@6d338c1d96dcbf12a2115fbe8e5b9817293aae33

-
name: Generate a CHANGELOG
run: git-chglog -o CHANGELOG.md

- uses: stefanzweifel/git-auto-commit-action@v4
# v4
- uses: stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
with:
branch: main
file_pattern: CHANGELOG.md
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/commit_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
# v4
- uses: wagoid/commitlint-github-action@416045160973f9fff174ac6698412cfe7181c3f3
3 changes: 2 additions & 1 deletion .github/workflows/gobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
# v3
uses: golangci/golangci-lint-action@08e2f20817b15149a52b5b3ebe7de50aff2ba8c5
with:
version: v1.48.0
# skip-go-installation: true
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: github/[email protected]
# v2.5
- uses: github/issue-labeler@6ca237433dbbb8e475241b7f38f4600d9e296c57
with:
repo-token: "${{ secrets.PROJECT_MANAGER_TOKEN }}"
configuration-path: .github/labeler.yml
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/modular-docs-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
- run: make generate-downstream-docs
name: Generate generate-downstream-docs
- name: Deploy
uses: JamesIves/[email protected]
# v4.4.1
uses: JamesIves/github-pages-deploy-action@ba1486788b0490a235422264426c45848eac35c6
with:
branch: modular-docs # The branch the action should deploy to.
folder: dist # The folder the action should deploy.
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ jobs:
core.setOutput('version', version)
-
name: Install git-chglog
uses: craicoverflow/install-git-chglog@v1
# v1
uses: craicoverflow/install-git-chglog@6d338c1d96dcbf12a2115fbe8e5b9817293aae33
-
name: Generate release notes
if: steps.check-tag.outputs.prerelease == 'false'
Expand All @@ -48,7 +49,8 @@ jobs:
run: cat RELEASE_NOTES.md

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3
# v3
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757
if: steps.check-tag.outputs.prerelease == 'false'
with:
version: latest
Expand All @@ -57,7 +59,8 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser on pre-release
uses: goreleaser/goreleaser-action@v3
# v3
uses: goreleaser/goreleaser-action@b508e2e3ef3b19d4e4146d4f8fb3ba9db644a757
if: steps.check-tag.outputs.prerelease == 'true'
with:
version: latest
Expand All @@ -67,7 +70,8 @@ jobs:

- name: Notify Guides of new version
if: steps.check-tag.outputs.prerelease == 'false'
uses: peter-evans/repository-dispatch@v2
# v2
uses: peter-evans/repository-dispatch@26b39ed245ab8f31526069329e112ab2fb224588
with:
token: ${{ secrets.APP_SERVICES_CI }}
repository: redhat-developer/app-services-guides
Expand Down

0 comments on commit 4e501cf

Please sign in to comment.