From 7aa81d138701594bf6770a5f55f0de0ce119c38b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20=C5=BDivkovi=C4=87?= Date: Thu, 18 Jan 2024 16:05:45 +0100 Subject: [PATCH] fix: attempt to fix dependabot mod tidy (#1551) ## Description This PR aims to fix failing Dependabot mod tidy workflows, since Dependabot doesn't have push permissions on the repo. Error that's looking to be fixed: Screenshot 2024-01-18 at 15 19 20
Contributors' checklist... - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [ ] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
--- .github/workflows/dependabot-tidy.yml | 4 ++++ 1 file changed, 4 insertions(+) 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"