Skip to content

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#7

Closed
AnythingLinux wants to merge 1 commit into
mainfrom
alert-autofix-1
Closed

Potential fix for code scanning alert no. 1: Workflow does not contain permissions#7
AnythingLinux wants to merge 1 commit into
mainfrom
alert-autofix-1

Conversation

@AnythingLinux

Copy link
Copy Markdown
Member

Potential fix for https://github.com/SchoolOfFreelancing/Freelancing-On-Linux/security/code-scanning/1

Add an explicit permissions block at the workflow root so all jobs inherit least-privilege access unless overridden. For this workflow, the minimal required permission is:

  • contents: read (needed for repository checkout)

Best fix without changing behavior:

  • Edit .github/workflows/blank.yml
  • Insert a top-level permissions: section between the trigger block (on:...) and jobs:
  • Set contents: read

No imports, methods, or additional definitions are needed.

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

…n permissions

Potential fix for code scanning alert no. 1: Workflow does not contain permissions

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Signed-off-by: Masum <linuxguns@gmail.com>
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