-
Notifications
You must be signed in to change notification settings - Fork 0
ci: pin workflow actions to commit SHAs (audit MD-28) #81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ runs: | |
| using: "composite" | ||
| steps: | ||
| - name: Use Node ${{ inputs.node_version }} | ||
| uses: actions/setup-node@v4 | ||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The commit SHA uses: actions/setup-node@1d71962b49693772fb9c9f966958fc8f86c4cd87 # v4.2.0 |
||
| with: | ||
| node-version: ${{ inputs.node_version }} | ||
| - name: Expose yarn config as "$GITHUB_OUTPUT" | ||
|
|
@@ -37,7 +37,7 @@ runs: | |
| # This avoids downloading ~1.2GB of cache data when we just want to verify caches exist | ||
| - name: Check yarn cache (lookup-only) | ||
| if: ${{ inputs.skip-install-if-cache-hit == 'true' }} | ||
| uses: actions/cache/restore@v4 | ||
| uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | ||
| id: yarn-download-cache-check | ||
| with: | ||
| path: ${{ steps.yarn-config.outputs.CACHE_FOLDER }} | ||
|
|
@@ -46,7 +46,7 @@ runs: | |
|
|
||
| - name: Check node_modules cache (lookup-only) | ||
| if: ${{ inputs.skip-install-if-cache-hit == 'true' }} | ||
| uses: actions/cache/restore@v4 | ||
| uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | ||
| id: yarn-nm-cache-check | ||
| with: | ||
| path: | | ||
|
|
@@ -57,7 +57,7 @@ runs: | |
|
|
||
| - name: Check yarn install state cache (lookup-only) | ||
| if: ${{ inputs.skip-install-if-cache-hit == 'true' }} | ||
| uses: actions/cache/restore@v4 | ||
| uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | ||
| id: yarn-install-state-cache-check | ||
| with: | ||
| path: .yarn/ci-cache/ | ||
|
|
@@ -83,7 +83,7 @@ runs: | |
| # Only restore if not in skip mode, or if skip mode but any cache check missed | ||
| - name: Restore yarn cache | ||
| if: ${{ inputs.skip-install-if-cache-hit != 'true' || steps.all-caches-check.outputs.all-hit != 'true' }} | ||
| uses: actions/cache@v4 | ||
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | ||
| id: yarn-download-cache | ||
| with: | ||
| path: ${{ steps.yarn-config.outputs.CACHE_FOLDER }} | ||
|
|
@@ -93,7 +93,7 @@ runs: | |
| - name: Restore node_modules | ||
| if: ${{ inputs.skip-install-if-cache-hit != 'true' || steps.all-caches-check.outputs.all-hit != 'true' }} | ||
| id: yarn-nm-cache | ||
| uses: actions/cache@v4 | ||
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | ||
| with: | ||
| path: | | ||
| **/node_modules/ | ||
|
|
@@ -104,7 +104,7 @@ runs: | |
| - name: Restore yarn install state | ||
| if: ${{ inputs.skip-install-if-cache-hit != 'true' || steps.all-caches-check.outputs.all-hit != 'true' }} | ||
| id: yarn-install-state-cache | ||
| uses: actions/cache@v4 | ||
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | ||
| with: | ||
| path: .yarn/ci-cache/ | ||
| key: ${{ runner.os }}-yarn-install-state-cache-${{ hashFiles('yarn.lock', '.yarnrc.yml') }} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment indicates version
v4.4.0, but the commit SHA11d5960a326750d5838078e36cf38b85af677262actually corresponds tov4.2.2(asv4.4.0does not exist foractions/checkout). Please update the comment to correctly reflect the version asv4.2.2to avoid confusion.