Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have needed to create another PAT for the renovate workflow in datarecord and decided doing this through a new Github App Bot would be the easiest way to do it.
Ai-noise:
The `test-generated-package-ci` job pushed the generated package to a `ci/*` branch with `CI_PAT`, a person's long-lived fine-grained token.
`GITHUB_TOKEN` cannot do this push: it may not write files under `.github/workflows/`, and its pushes start no workflow.
This PR mints a token from the `energy-models-bot` org app instead, with `contents: write` and `workflows: write`, scoped to this repository and revoked when the job ends.
The cleanup step reuses the same token to delete the branch.
This needs `workflows: write` added to the app and accepted on its installations; without it the push is rejected and this PR's own CI fails.
Together with #4, this removes the last use of `CI_PAT`, so the secret can be deleted once both are merged.