Skip to content

Verify GitHub workflow files comply with minimum token permissions requirements#80

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-79
Closed

Verify GitHub workflow files comply with minimum token permissions requirements#80
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-79

Conversation

Copy link
Copy Markdown

Copilot AI commented Jun 30, 2025

This PR addresses the Token-Permissions check from OpenSSF Scorecard recommendations by verifying that all GitHub workflow files have minimum token permissions configured correctly.

Summary

After comprehensive analysis of all 20 GitHub workflow files in the repository, all workflows already comply with the security requirements. No changes were needed.

Verification Results

✅ Root-Level Permissions

  • All 20 workflow files have correct root-level permissions set
  • 19 files use permissions: contents: read (secure default)
  • 1 file uses permissions: read-all (ossf-scorecard.yml - acceptable for scorecard workflows)

✅ Job-Level Permissions

All jobs requiring write permissions already have appropriate job-level permissions with explanatory comments:

  • assign-reviewers.yml: pull-requests: write # for assigning reviewers
  • backport.yml: contents: write # for Git to git push
  • codeql.yml: security-events: write # for github/codeql-action/analyze to upload SARIF results
  • issue-management-stale-action.yml: issues: write # for actions/stale to close stale issues
  • prepare-patch-release.yml: contents: write # for Git to git push
  • prepare-release-branch.yml: contents: write # for Git to git push
  • release.yml: contents: write # for creating the release

✅ Local Reusable Workflow Calls

  • build.yml calls 4 reusable workflows that only need contents: read
  • owasp-dependency-check-daily.yml calls reusable workflow with correct issues: write permissions

Security Compliance

This verification ensures compliance with OpenSSF Scorecard Token-Permissions check:

  • ✅ All workflows have minimum required root-level permissions
  • ✅ Write permissions are granted only where necessary at job level
  • ✅ All write permissions have explanatory comments
  • ✅ No unnecessary permissions granted

Fixes #79.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add minimum token permissions for all github workflow files Verify GitHub workflow files comply with minimum token permissions requirements Jun 30, 2025
Copilot AI requested a review from trask June 30, 2025 21:08
Copilot finished work on behalf of trask June 30, 2025 21:08
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.

Add minimum token permissions for all github workflow files

3 participants