57
loading...
This website collects cookies to deliver better user experience
- uses: actions/labeler@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
secrets.GITHUB_TOKEN
to consume it. As mentioned, the secret is automatically generated so you can just use it straight away.- name: Create a Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
Read and Write
(which allows you to access the content and make changes) or Read-only
.permissions
key in the YAML workflow file to modify permissions for the GITHUB_TOKEN for an entire workflow or for individual jobs.permissions:
contents: write
pull-requests: write
issues: read
packages: none
When the permissions key is used, all unspecified permissions are set to no access, with the exception of the metadata scope, which always gets read access.
[...]
permissions:
contents: write
pull-requests: write
jobs:
job1:
runs-on: ubuntu-latest
steps:
[...]
job2:
runs-on: ubuntu-latest
permissions:
issues: write
steps:
[...]