From 4f5bd4d8d2ad9cd821e56da034af8a71683964cf Mon Sep 17 00:00:00 2001 From: Jennifer Power Date: Fri, 14 Jul 2023 10:11:43 -0400 Subject: [PATCH] chore: adds correction on how to setup auth for git with user token Signed-off-by: Jennifer Power --- TROUBLESHOOTING.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index 61cb4a83..1be640bb 100644 --- a/TROUBLESHOOTING.md +++ b/TROUBLESHOOTING.md @@ -7,21 +7,13 @@ Verify the trigger you are using. The default branch is set to `github.ref_name` ## Action does not have permission to commit -If your workflow requires that this action make changes to your branch, ensure the the token being used has the correct permissions and the token is being set. Some examples of how to set the GitHub token are: +If your workflow requires that this action make changes to your branch, ensure the token being used has `content: write` permissions and the token is being set. ```yaml +## Defaults to ${{ github.token }} - uses: actions/checkout@v3 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.TOKEN }} ``` -```yaml -- uses: RedHatProductSecurity/trestle-bot@main - with: - markdown_path: "markdown/profiles" - assemble_model: "profile" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -``` - -> Note: Using the GitHub token provided with GitHub Action to commit to a branch will [NOT trigger additional workflows](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow). \ No newline at end of file +> Note: Using the GitHub token provided with GitHub Actions to commit to a branch will [NOT trigger additional workflows](https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow). \ No newline at end of file