Skip to content

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

Merged
ReuelAlbert-Dev merged 1 commit into
masterfrom
alert-autofix-49
Jun 7, 2026
Merged

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

Conversation

@ReuelAlbert-Dev

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/ReuelAlbert-Dev/PowerShell/security/code-scanning/49

Add an explicit permissions block to the workflow so GITHUB_TOKEN is least-privileged by default.
Best fix here: define workflow-level permissions directly under workflow_dispatch (before jobs) with contents: read, which is sufficient for checkout and read-only link verification in this file as shown.

File to edit: .github/workflows/verify-markdown-links.yml
Change location: between the on: block and the jobs: block.
No imports, methods, or dependencies are needed (YAML config only).

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

…in permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Reuel Albert  <66895085+ReuelAlbert-Dev@users.noreply.github.com>
@ReuelAlbert-Dev ReuelAlbert-Dev marked this pull request as ready for review June 7, 2026 10:39
@ReuelAlbert-Dev ReuelAlbert-Dev merged commit c364470 into master Jun 7, 2026
34 checks passed
@ReuelAlbert-Dev ReuelAlbert-Dev deleted the alert-autofix-49 branch June 7, 2026 10:39
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