FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Use generated token on checkout by rvermeulen · Pull Request #2481 · github/codeql-action · GitHub

Use generated token on checkout - #2481

Merged
dbartol merged 1 commit into
github:mainfrom
rvermeulen:rvermeulen/use-correct-token-for-auth
Sep 13, 2024
Merged

dbartol merged 1 commit into
github:mainfrom
rvermeulen:rvermeulen/use-correct-token-for-auth

Conversation

rvermeulen commented Sep 13, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

The script .github/update-release-branch.py uses the git command to push changes. Therefore we need to ensure that git authenticates with a token that has the workflows write permision.

This change restore the GitHub token used by the script to access the API and applies the workflows write permission to the token used by git.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

The script `.github/update-release-branch.py` uses the `git` command
to push changes. Therefore we need to ensure that `git` authenticates
with a token that has the `workflows` write permision.

This change restore the GitHub token used by the script to access the
API and applies the `workflows` write permission to the token used by `git`.
rvermeulen requested a review from a team as a code owner September 13, 2024 16:16

dbartol commented Sep 13, 2024

Copy link
Copy Markdown

Where does the workflows: write permission get applied?

rvermeulen commented Sep 13, 2024
edited
Loading

Copy link
Copy Markdown
Contributor Author

The GitHub App generating the token applies that permission. The token is then used by by git to push.

dbartol merged commit 5618c9f into github:main Sep 13, 2024
github-actions Bot mentioned this pull request Sep 19, 2024
8 tasks
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL