Skip to content

Add explicit GitHub Actions token permissions#30

Open
arpitjain099 wants to merge 1 commit into
GSA:mainfrom
arpitjain099:security/workflow-permissions
Open

Add explicit GitHub Actions token permissions#30
arpitjain099 wants to merge 1 commit into
GSA:mainfrom
arpitjain099:security/workflow-permissions

Conversation

@arpitjain099
Copy link
Copy Markdown

Summary

  • Add a top-level permissions block in .github/workflows/test.yml.
  • Set contents: read as the minimal required GITHUB_TOKEN scope for this workflow.
  • Keep workflow behavior unchanged while aligning with least-privilege guidance.

Why

CodeQL flags this workflow for missing explicit token permissions. Defining minimal permissions reduces accidental token overreach and keeps security posture explicit.

Validation

  • Workflow YAML structure reviewed locally (.github/workflows/test.yml).

Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@arpitjain099
Copy link
Copy Markdown
Author

@vipinkataria2209 can you please review this PR.

@arpitjain099 arpitjain099 force-pushed the security/workflow-permissions branch from e8419aa to 980329c Compare May 13, 2026 17:14
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