forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): Pin action dependencies by digest (redwoodjs#11395)
It is considered a best practice to pin github actions by the actual digest rather than by tag - given that tags are mutable. There's a convenient tool [pin-github-action](https://github.com/mheap/pin-github-action) that has a CLI that can take a file and do this for us. I used this here and ensured that I had the comments in the form that renovate will understand. Renovate will trigger updates for the digest when a new version (based on the comment) is published [(docs)](https://docs.renovatebot.com/modules/manager/github-actions/#additional-information). This might make working with actions slightly harder than it was before but we often use the same actions repeatedly so in that case just copy paste the digest from somewhere else. If you're adding a new one use the version tag and then run that tool mentioned above.
- Loading branch information
1 parent
9292ec5
commit 14244d9
Showing
10 changed files
with
42 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ jobs: | |
outputs: | ||
version: ${{ steps.get-version.outputs.value }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
# `fetch-depth`—number of commits to fetch. `0` fetches all history for all branches and tags. | ||
# This is required because lerna uses tags to determine the version. | ||
with: | ||
|
@@ -47,7 +47,7 @@ jobs: | |
|
||
- name: 🏷 Get version | ||
id: get-version | ||
uses: sergeysova/[email protected] | ||
uses: sergeysova/jq-action@a3f0d4ff59cc1dddf023fc0b325dd75b10deec58 # v2.3.0 | ||
with: | ||
cmd: 'jq .version packages/core/package.json -r' | ||
|
||
|
@@ -58,7 +58,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
- name: 💬 Message Slack | ||
uses: ./.github/actions/message_slack_publishing | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ jobs: | |
if: github.repository == 'redwoodjs/redwood' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
# Required because lerna uses tags to determine the version. | ||
with: | ||
fetch-depth: 0 | ||
|
@@ -29,7 +29,7 @@ jobs: | |
run: corepack enable | ||
|
||
- name: ⬢ Set up Node.js | ||
uses: actions/setup-node@v4 | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4 | ||
with: | ||
node-version: 20 | ||
|
||
|
@@ -59,7 +59,7 @@ jobs: | |
outputs: | ||
version: ${{ steps.get-version.outputs.value }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
with: | ||
# `fetch-depth`—number of commits to fetch. `0` fetches all history for all branches and tags. | ||
# This is required because lerna uses tags to determine the version. | ||
|
@@ -92,7 +92,7 @@ jobs: | |
|
||
- name: 🏷 Get version | ||
id: get-version | ||
uses: sergeysova/[email protected] | ||
uses: sergeysova/jq-action@a3f0d4ff59cc1dddf023fc0b325dd75b10deec58 # v2.3.0 | ||
with: | ||
cmd: 'jq .version packages/core/package.json -r' | ||
|
||
|
@@ -103,7 +103,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | ||
- name: 💬 Message Slack | ||
uses: ./.github/actions/message_slack_publishing | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters