stride3d / stride3d/stride

Audit & Harden GitHub Actions workflow permissions across stride3d org

Open
#3,182 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dependencies
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 explicit permissions: (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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.