Skip to content

Restrict Pages and OIDC permissions to the deploy job #141

Description

@richardcase

Problem

The Pages deployment workflow grants pages: write and id-token: write at workflow scope, including the source-controlled build job that runs npm hooks and a third-party Astro Action.

Evidence: https://github.com/richardcase/clowder/blob/b5492d5/.github/workflows/deploy-site.yml#L30-L65

Acceptance criteria

  • Give build only the permissions required for checkout/build.
  • Grant Pages/OIDC permissions only to deploy.
  • Verify the deployment still succeeds and add an actionlint check for the intended scope.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    github_actionsPull requests that update GitHub Actions codepriority: mediumImportant hardening or maintainability work

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions