-
Notifications
You must be signed in to change notification settings - Fork 3
chore: pin external GitHub Actions to commit SHAs #9
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’ll 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 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -10,13 +10,13 @@ jobs: | |||||||||||||
| runs-on: ubuntu-24.04 | ||||||||||||||
| steps: | ||||||||||||||
| - name: checkout | ||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||||||||||||||
|
|
||||||||||||||
| - name: Get yarn cache directory path | ||||||||||||||
| id: yarn-cache-dir-path | ||||||||||||||
| run: echo "::set-output name=dir::$(yarn cache dir)" | ||||||||||||||
|
Comment on lines
15
to
17
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify deprecated command usage is removed from this workflow
rg -n '::set-output' .github/workflows/generate-docs.ymlRepository: phantom/stripe-react-native Length of output: 134 Replace deprecated The Proposed fix - name: Get yarn cache directory path
id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(yarn cache dir)"
+ run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.11)[error] 17-17: workflow command "set-output" was deprecated. use (deprecated-commands) 🤖 Prompt for AI Agents |
||||||||||||||
|
|
||||||||||||||
| - uses: actions/cache@v4 | ||||||||||||||
| - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | ||||||||||||||
| id: yarn-cache | ||||||||||||||
| with: | ||||||||||||||
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||||||||||||||
|
|
@@ -25,7 +25,7 @@ jobs: | |||||||||||||
| ${{ runner.os }}-yarn- | ||||||||||||||
|
|
||||||||||||||
| - name: Setup Node.js environment | ||||||||||||||
| uses: actions/setup-node@v4 | ||||||||||||||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | ||||||||||||||
| with: | ||||||||||||||
| node-version: 20 | ||||||||||||||
|
|
||||||||||||||
|
|
@@ -37,7 +37,7 @@ jobs: | |||||||||||||
| run: yarn docs | ||||||||||||||
|
|
||||||||||||||
| - name: Deploy | ||||||||||||||
| uses: peaceiris/actions-gh-pages@v3 | ||||||||||||||
| uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3 | ||||||||||||||
| with: | ||||||||||||||
| github_token: ${{ secrets.DOCS_GITHUB_SECRET }} | ||||||||||||||
| publish_dir: ./docs | ||||||||||||||
|
|
||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,13 +12,13 @@ jobs: | |||||||||||||
| runs-on: ubuntu-24.04 | ||||||||||||||
| steps: | ||||||||||||||
| - name: checkout | ||||||||||||||
| uses: actions/checkout@v4 | ||||||||||||||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | ||||||||||||||
|
|
||||||||||||||
| - name: Get yarn cache directory path | ||||||||||||||
| id: yarn-cache-dir-path | ||||||||||||||
| run: echo "::set-output name=dir::$(yarn cache dir)" | ||||||||||||||
|
Comment on lines
17
to
19
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Verify deprecated command usage is removed from this workflow
rg -n '::set-output' .github/workflows/js-tests.ymlRepository: phantom/stripe-react-native Length of output: 134 Replace deprecated The workflow command Proposed fix - name: Get yarn cache directory path
id: yarn-cache-dir-path
- run: echo "::set-output name=dir::$(yarn cache dir)"
+ run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"📝 Committable suggestion
Suggested change
🧰 Tools🪛 actionlint (1.7.11)[error] 19-19: workflow command "set-output" was deprecated. use (deprecated-commands) 🤖 Prompt for AI Agents |
||||||||||||||
|
|
||||||||||||||
| - uses: actions/cache@v4 | ||||||||||||||
| - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4 | ||||||||||||||
| id: yarn-cache | ||||||||||||||
| with: | ||||||||||||||
| path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | ||||||||||||||
|
|
@@ -27,7 +27,7 @@ jobs: | |||||||||||||
| ${{ runner.os }}-yarn- | ||||||||||||||
|
|
||||||||||||||
| - name: Setup Node.js environment | ||||||||||||||
| uses: actions/setup-node@v4 | ||||||||||||||
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | ||||||||||||||
| with: | ||||||||||||||
| node-version: 20 | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
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.
🧩 Analysis chain
🏁 Script executed:
Repository: phantom/stripe-react-native
Length of output: 199
Replace deprecated
::set-outputwith$GITHUB_OUTPUTon lines 55 and 210.GitHub Actions deprecated the
::set-outputsyntax. Both yarn cache directory steps must use the environment variable approach instead.Proposed fix
- name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> "$GITHUB_OUTPUT"📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.11)
[error] 55-55: workflow command "set-output" was deprecated. use
echo "{name}={value}" >> $GITHUB_OUTPUTinstead: https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions(deprecated-commands)
🤖 Prompt for AI Agents