Skip to content

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

Draft
JAaron93 wants to merge 1 commit into
mainfrom
alert-autofix-1
Draft

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

Conversation

@JAaron93

Copy link
Copy Markdown
Owner

Potential fix for https://github.com/JAaron93/PerspectivePrism/security/code-scanning/1

Add an explicit permissions block in .github/workflows/chrome-extension.yml at the workflow root (recommended here since there is one job), setting least privilege for current behavior.

Best single fix without changing functionality:

  • Add:
    • contents: read (needed for checkout and general repository read operations)
    • actions: read (safe for action metadata reads)
  • Place this block after the on: section and before jobs: so it applies to all jobs unless overridden later.

No imports, methods, or dependencies are needed (YAML config only).

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>
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