From 907fc3c07649f4ae63972a0346f60cef0801dfe9 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 | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/TROUBLESHOOTING.md b/TROUBLESHOOTING.md index 61cb4a83..6cbb659b 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 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 }} -``` - -```yaml -- uses: RedHatProductSecurity/trestle-bot@main - with: - markdown_path: "markdown/profiles" - assemble_model: "profile" - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.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