Set token as environment variable for Gradle (#1404)

This commit is contained in:
Matt Bishop 2024-05-30 11:48:29 -04:00 committed by Álison Fernandes
parent 9e8bab2b81
commit a8e87d5509
2 changed files with 4 additions and 1 deletions

View file

@ -23,6 +23,7 @@ on:
type: boolean type: boolean
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JAVA_VERSION: 17 JAVA_VERSION: 17
jobs: jobs:

View file

@ -10,6 +10,7 @@ on:
types: [opened, synchronize] types: [opened, synchronize]
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
JAVA_VERSION: 17 JAVA_VERSION: 17
jobs: jobs:
@ -23,8 +24,9 @@ jobs:
needs: check-run needs: check-run
permissions: permissions:
contents: read contents: read
pull-requests: write issues: write
packages: read packages: read
pull-requests: write
steps: steps:
- name: Check out repo - name: Check out repo