Audit & Harden GitHub Actions workflow permissions across stride3d org
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 7.8k
- Forks
- 1.2k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 49
Description
Harden GitHub Actions Workflow Permissions
GitHub now recommends setting explicit permissions for each workflow/job to ensure least privilege for Actions tokens. To improve security and future-proof our automation:
- Audit every workflow in
.github/workflows/and add explicitpermissions:(preferably at the workflow level) - For pure build/test jobs, use
permissions: contents: read - For workflows needing to comment, create releases, publish, or update repo state, add only the minimal additional permissions required
Related tasks for other stride3d repos
- stride3d/stride-docs: Audit and restrict workflow permissions
- stride3d/stride-website: Audit and restrict workflow permissions
- stride3d/stride-community-toolkit: Audit and restrict workflow permissions
Possible candidates for stride repository
build-android.yml
build-assembly-processor.yml
build-ios.yml
build-linux-runtime.yml
build-windows-full.yml
build-windows-runtime.yml
test-linux-game.yml
test-linux-simple.yml
test-windows-editor.yml
test-windows-game.yml
test-windows-simple.yml
References:
Goal: Reduce risk surface, improve clarity, and follow best practices by adhering to the principle of least privilege for all GitHub Actions.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by auditing the listed workflows in .github/workflows/, beginning with the build and test workflows, and read GitHub's workflow permissions documentation. For each workflow, identify the actions that need repository access and set explicit least-privilege permissions; done means every workflow has an explicit permissions block with only the access it requires.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd, security
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100