Skip to content

Cleanup Preview Action still cannot cleanup the relative GH Environment #427

Closed

Description

@Ethan-Arrowood

The preview workflow has a job when the PR closes to clean up the deployment and relative GitHub environment. On a recent run for pr #425 , it failed to delete the GitHub environment: https://github.com/HarperFast/documentation/actions/runs/21219868815/job/61051413755

Could not delete environment pr-425: Resource not accessible by integration

Need to take another look at the cleanup job.

Activity

  1. added
    platform🖥️ Site functionality issues and requests - search, navigation, mobile, or site features
    on Jun 25, 2026
  2. Ethan-Arrowood commented on Aug 27, 2026

    @Ethan-Arrowood
    MemberAuthor

    Closing — fixed in #607. Environment deletion is now its own step, using an installation token minted from an org-owned GitHub App, which carries the administration scope that the workflow's GITHUB_TOKEN cannot be granted under any permissions: combination. The ~120 stale pr-* environments were purged manually at the time, and cleanup runs on pr-preview.yaml have been succeeding since.

    sent with Claude Opus 5

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

    platform🖥️ Site functionality issues and requests - search, navigation, mobile, or site features

    Type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions