Skip to content

ci: add explicit GITHUB_TOKEN permissions to cron-vendor workflow - #334

Merged
JarryShaw merged 2 commits into
mainfrom
copilot/fix-code-scanning-alerts-please-work
Aug 13, 2026
Merged

ci: add explicit GITHUB_TOKEN permissions to cron-vendor workflow#334
JarryShaw merged 2 commits into
mainfrom
copilot/fix-code-scanning-alerts-please-work

Conversation

Copilot AI commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

CodeQL flagged the cron-vendor workflow (alert #1) for missing explicit permissions, leaving the GITHUB_TOKEN scope inherited from repo/org defaults — which may be broader than necessary.

Changes

  • .github/workflows/cron-vendor.yml: Added permissions: contents: write to the vendor-update job — the minimum required for committing and pushing vendor updates back to the repo.
jobs:
  vendor-update:
    runs-on: macos-latest
    permissions:
      contents: write

Co-authored-by: JarryShaw <15666417+JarryShaw@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix code scanning alert flagged in repository ci: add explicit GITHUB_TOKEN permissions to cron-vendor workflow Aug 13, 2026
Copilot AI requested a review from JarryShaw August 13, 2026 04:14
@JarryShaw
JarryShaw marked this pull request as ready for review August 13, 2026 04:27
@JarryShaw
JarryShaw merged commit 1acb722 into main Aug 13, 2026
1 check passed
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.

2 participants