Skip to content

Potential fix for code scanning alert no. 3: Workflow does not contain permissions - #104

Merged
CornFlakesPC merged 1 commit into
masterfrom
alert-autofix-3
Jul 21, 2026
Merged

Potential fix for code scanning alert no. 3: Workflow does not contain permissions#104
CornFlakesPC merged 1 commit into
masterfrom
alert-autofix-3

Conversation

@CornFlakesPC

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/CornFlakesPC/ASRockWiki/security/code-scanning/3

Add an explicit permissions block in .github/workflows/update_jekyll-anchor-heading.yml at the workflow root (applies to all jobs).
Because this workflow checks out code, downloads an updated vendor file, then creates a commit/branch and pull request, the minimal practical permissions are:

  • contents: write (needed to commit/push branch changes)
  • pull-requests: write (needed to create/update PR)

This keeps permissions explicit and constrained to required scopes while preserving current functionality. No imports/dependencies are needed.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

…n permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@CornFlakesPC
CornFlakesPC marked this pull request as ready for review July 21, 2026 21:23
@CornFlakesPC
CornFlakesPC merged commit 8dcaaef into master Jul 21, 2026
5 checks passed
@CornFlakesPC
CornFlakesPC deleted the alert-autofix-3 branch July 21, 2026 21:28
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.

1 participant