mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Set write permission on specific job (#6915)
* set wirte permission on specific job * only allow read
This commit is contained in:
parent
4db61df8cd
commit
2591df3b11
4
.github/workflows/backport.yml
vendored
4
.github/workflows/backport.yml
vendored
@ -10,12 +10,14 @@ on:
|
||||
types: [ "labeled", "closed" ]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
backport:
|
||||
name: Backport PR
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
if: |
|
||||
github.event.pull_request.merged == true
|
||||
&& contains(github.event.pull_request.labels.*.name, 'backport')
|
||||
|
Loading…
Reference in New Issue
Block a user