-
Notifications
You must be signed in to change notification settings - Fork 239
chore(security): uses pinned versions of actions #1562
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
base: master
Are you sure you want to change the base?
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 |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: get the gh-pages repo | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| ref: gh-pages | ||
|
|
||
|
Comment on lines
+14
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. Harden both checkout steps with At Line 14 and Line 40, checkout leaves credentials persisted by default. Explicitly disable it in both steps. Also applies to: 40-43 🤖 Prompt for AI Agents |
||
|
|
@@ -24,7 +24,7 @@ jobs: | |
| tar -cvf documentation.tar ./ | ||
|
|
||
| - name: create a document artifact | ||
| uses: actions/upload-artifact@v7 | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: documentation | ||
| path: documentation.tar | ||
|
|
@@ -37,12 +37,12 @@ jobs: | |
| contents: write | ||
| steps: | ||
| - name: Checkout src | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| token: ${{ github.token }} | ||
|
|
||
| - name: Download the existing documents artifact | ||
| uses: actions/download-artifact@v8 | ||
| uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 | ||
| with: | ||
| name: documentation | ||
| - run: rm -rf ./docs # delete previous docs folder present | ||
|
|
@@ -63,7 +63,7 @@ jobs: | |
| run: node scripts/manage-doc-versions.js | ||
|
|
||
| - name: Deploy to GitHub Pages | ||
| uses: peaceiris/actions-gh-pages@v4 | ||
| uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0 | ||
| with: | ||
| github_token: ${{ github.token }} | ||
| publish_dir: ./docs | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ jobs: | |
| if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/')) | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| fetch-depth: 0 | ||
|
Comment on lines
+23
to
25
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. Set At Line 23, checkout currently persists credentials; disabling this reduces token exposure across later build/scanner steps. 🧰 Tools🪛 zizmor (1.25.2)[warning] 23-25: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false (artipacked) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||
|
|
||
|
|
@@ -41,7 +41,7 @@ jobs: | |
| echo "version=$version" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Run RL Scanner | ||
| uses: auth0/devsecops-tooling/.github/actions/rl-scan@main | ||
| uses: auth0/devsecops-tooling/.github/actions/rl-scan@e29f26478db18ff0bcbe4bc447a8fbd54fbeec9e # main on 2026-06-09, TODO: use a release instead | ||
| with: | ||
| artifact-name: "react-native-auth0" | ||
| artifact-path: "${{ github.workspace }}/react-native-auth0.tgz" | ||
|
|
||
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.
Disable credential persistence on checkout.
At Line 24, add
persist-credentials: falseso the default token is not left in git config for subsequent steps.Suggested patch
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 with: fetch-depth: 0 + persist-credentials: false📝 Committable suggestion
🧰 Tools
🪛 zizmor (1.25.2)
[warning] 24-28: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
🤖 Prompt for AI Agents
Source: Linters/SAST tools