Skip to content

Commit

Permalink
ci: set permissions and use github token
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtro committed Jul 17, 2024
1 parent ce03fd0 commit 54f452d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@ concurrency:
jobs:
build:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write

steps:
- uses: actions/checkout@v3
- name: Get auth token
id: token
uses: getsentry/action-github-app-token@v2.0.0
with:
app_id: ${{ secrets.SENTRY_INTERNAL_APP_ID }}
private_key: ${{ secrets.SENTRY_INTERNAL_APP_PRIVATE_KEY }}
- name: Get changed files
id: changes
uses: dorny/paths-filter@0bc4621a3135347011ad047f9ecf449bf72ce2bd # v3.0.0
Expand All @@ -35,6 +33,7 @@ jobs:
cache-dependency-path: |
requirements.txt
install-cmd: pip install -r requirements-precommit.txt

- name: Setup pre-commit
run: |
pre-commit install
Expand All @@ -49,5 +48,5 @@ jobs:
# note: this runs "always" or else it's skipped when pre-commit fails
uses: getsentry/action-github-commit@31f6706ca1a7b9ad6d22c1b07bf3a92eabb05632 # v2.0.0
with:
github-token: ${{ steps.token.outputs.token }}
github-token: ${{secrets.GITHUB_TOKEN}}
message: ':hammer_and_wrench: apply pre-commit fixes'

0 comments on commit 54f452d

Please sign in to comment.