Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/npm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
# Checkout the code
- uses: actions/checkout@v6
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
Comment on lines +24 to 26

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Disable credential persistence on checkout.

At Line 24, add persist-credentials: false so 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

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0
persist-credentials: false
🧰 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
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/npm-release.yml around lines 24 - 26, The checkout step
using actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 should
explicitly disable credential persistence to avoid leaving the default
GITHUB_TOKEN in the repo git config; update the checkout step (the block
containing "uses: actions/checkout@df4cb1c0..." and its "with:" settings) to add
persist-credentials: false alongside fetch-depth: 0 so subsequent steps cannot
use the persisted token.

Source: Linters/SAST tools


Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Harden both checkout steps with persist-credentials: false.

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
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/publish-docs.yml around lines 14 - 17, The checkout steps
using actions/checkout (the steps with "uses: actions/checkout@...") leave
credentials persisted by default; add the key persist-credentials: false under
the with: block for both checkout steps (the initial checkout with ref: gh-pages
and the later checkout step around lines 40-43) so each checkout step explicitly
disables credential persistence.

Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Set persist-credentials: false on checkout.

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 Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/release.yml around lines 23 - 25, Add the
persist-credentials: false option to the actions/checkout step to avoid
persisting the GITHUB_TOKEN to later steps; in the checkout block where you use
actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 (v6.0.3) alongside
fetch-depth: 0, add the key persist-credentials: false so credentials are not
carried forward to subsequent build/scanner steps.

Source: Linters/SAST tools


Expand All @@ -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"
Expand Down