From 6e77465817fa3ce0347adc4f3198f0a5345d271e Mon Sep 17 00:00:00 2001 From: Adam Taranto Date: Sat, 12 Oct 2024 20:00:23 +1100 Subject: [PATCH] Use default GITHUB_TOKEN instead of custom token --- .github/workflows/ruff.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index 73c7e72..2ee53d2 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -5,12 +5,13 @@ jobs: runs-on: ubuntu-latest permissions: # Give the default GITHUB_TOKEN write permission to commit and push the changed files. - contents: write + contents: write # Allows reading and writing repository contents (e.g., commits) + pull-requests: write # Allows reading and writing pull requests steps: - uses: actions/checkout@v4 with: ref: ${{ github.sha }} - token: ${{ secrets.ACTION_TOKEN }} + token: ${{ secrets.GITHUB_TOKEN }} - uses: chartboost/ruff-action@v1 with: src: './src/python'