diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 77e47e7..c75935f 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -15,6 +15,12 @@ on: env: GO_VERSION: ">=1.21" +permissions: + # deployments permission to deploy GitHub pages website + deployments: write + # contents permission to update benchmark contents in gh-pages branch + contents: write + jobs: # This job is responsible for preparation of the build # environment variables. @@ -94,7 +100,7 @@ jobs: tool: "go" output-file-path: output.txt fail-on-alert: true - github-token: ${{ secrets.GHCR_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} comment-on-alert: true summary-always: true # auto-push only if it's on main branch diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index a699f40..94c05cb 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -13,6 +13,12 @@ on: env: GO_VERSION: ">=1.21" +permissions: + # deployments permission to deploy GitHub pages website + deployments: write + # contents permission to update benchmark contents in gh-pages branch + contents: write + jobs: shared: uses: telegram-bot-app/ci-scripts/.github/workflows/build-test-publish-inject.yaml@main @@ -57,7 +63,7 @@ jobs: tool: "go" output-file-path: output.txt fail-on-alert: true - github-token: ${{ secrets.GHCR_TOKEN }} + github-token: ${{ secrets.GITHUB_TOKEN }} comment-on-alert: true summary-always: true # auto-push only if it's on main branch