Skip to content

Update GitHub actions versions and add permissions - #795

Open
AerunDev wants to merge 3 commits into
developfrom
security/update-and-secure-ci-actions
Open

Update GitHub actions versions and add permissions#795
AerunDev wants to merge 3 commits into
developfrom
security/update-and-secure-ci-actions

Conversation

@AerunDev

@AerunDev AerunDev commented Aug 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

This PR updates the GitHub Actions used by Pokémon Studio and tightens workflow permissions to follow current GitHub recommendations.

Changes

  • Update GitHub Actions to their latest major versions:
    • actions/checkoutv7
    • actions/setup-nodev7
    • actions/cachev6
    • actions/upload-artifactv7
  • Explicitly restrict CI workflows to read-only repository access with:
    • contents: read
  • Grant contents: write only to the production build job that needs to publish GitHub releases.

Why

GitHub Actions have evolved significantly since the versions currently used by the project. Updating them keeps the CI compatible with current runners and supported action runtimes.

Explicit workflow permissions also reduce the privileges granted to CI jobs by default. Regular builds and pull requests only need read access, while write access is limited to the production publishing job.

This keeps the change intentionally small and focused on CI maintenance and repository security without changing the existing build or release workflow.

@AerunDev
AerunDev requested review from NuriYuri and Palbolsky August 16, 2026 13:42
@AerunDev AerunDev self-assigned this Aug 16, 2026
@AerunDev AerunDev added the Technical story Issues related to technical work label Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Technical story Issues related to technical work

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

1 participant