Skip to content

Commit

Permalink
Use checkout v4 and give write permission
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalkah committed Aug 23, 2024
1 parent 44f740a commit 7364f57
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ on:
branches: [ "main" ]
types: [opened, labeled, unlabeled, synchronize]
jobs:
format:
format-code:
runs-on: ubuntu-latest

permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
token: ${{ secrets.BOT_TOKEN || github.token }}
# check out HEAD on the branch
Expand Down

0 comments on commit 7364f57

Please sign in to comment.