Skip to content

fix overprovisioned-secrets zizmor finding - #23265

Merged
lnicola merged 1 commit into
rust-lang:masterfrom
marcoieni:overprovisioned-secrets
Aug 31, 2026
Merged

fix overprovisioned-secrets zizmor finding#23265
lnicola merged 1 commit into
rust-lang:masterfrom
marcoieni:overprovisioned-secrets

Conversation

@marcoieni

@marcoieni marcoieni commented Aug 31, 2026

Copy link
Copy Markdown
Member

fix the overprovisioned-secrets zizmor finding:

warning[overprovisioned-secrets]: excessively provisioned secrets
   --> .github/workflows/release.yaml:281:67
    |
281 | ...h --skip-duplicate --pat ${{ secrets[matrix.pat] }} --packagePath ../../dist/rust-analyzer-*.vsix ${{ github.ref != 'refs/heads/...
    |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^ injects the entire secrets context into the runner
    |
    = note: audit confidence → High

AI disclosure

I used GPT5.6-Sol with the codex harness to generate this change. I reviewed its output.

- name: Publish Extension
if: github.repository == 'rust-lang/rust-analyzer'
env:
PUBLISH_PAT: ${{ (matrix.cmd == 'vsce' && secrets.MARKETPLACE_TOKEN) || (matrix.cmd == 'ovsx' && secrets.OPENVSX_TOKEN) }}

@marcoieni marcoieni Aug 31, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@marcoieni
marcoieni marked this pull request as ready for review August 31, 2026 16:12
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 31, 2026
@lnicola
lnicola added this pull request to the merge queue Aug 31, 2026
Merged via the queue into rust-lang:master with commit ce43a12 Aug 31, 2026
19 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants