Skip to content
Closed
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/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
node-version: [20, 22]

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Disable checkout credential persistence in both workflows.

Both jobs execute repository/dependency code after checkout, so avoid exposing the GitHub token to those steps unless authenticated Git operations are explicitly required. (github.com)

  • .github/workflows/ci.yml#L17-L17: add with: persist-credentials: false.
  • .github/workflows/publish.yml#L17-L17: add with: persist-credentials: false.
🧰 Tools
🪛 zizmor (1.26.1)

[warning] 17-17: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)

📍 Affects 2 files
  • .github/workflows/ci.yml#L17-L17 (this comment)
  • .github/workflows/publish.yml#L17-L17
🤖 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/ci.yml at line 17, Disable checkout credential persistence
in both workflow checkout steps: update .github/workflows/ci.yml lines 17-17 and
.github/workflows/publish.yml lines 17-17 to configure checkout with
persist-credentials set to false.

Source: Linters/SAST tools


- uses: actions/setup-node@v5
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v7

- uses: actions/setup-node@v5
with:
Expand Down
Loading