diff --git a/.github/workflows/dependabot-tidy.yml b/.github/workflows/dependabot-tidy.yml index e13390fa831..9db199a9605 100644 --- a/.github/workflows/dependabot-tidy.yml +++ b/.github/workflows/dependabot-tidy.yml @@ -11,6 +11,8 @@ jobs: tidy_go_mods: runs-on: ubuntu-latest if: ${{ github.actor == 'dependabot[bot]' }} + permissions: + contents: write steps: - name: Checkout code uses: actions/checkout@v4 @@ -36,6 +38,8 @@ jobs: - name: Commit changes, if any uses: stefanzweifel/git-auto-commit-action@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: skip_dirty_check: false # Enable dirty check, and skip unnecessary committing commit_message: "Run 'go mod tidy' via GitHub Actions"