chore: Set permissions for GitHub actions (#7928)

Co-authored-by: naveen <172697+naveensrinivasan@users.noreply.github.com>
This commit is contained in:
chris48s
2022-05-05 18:45:08 +01:00
committed by GitHub
parent bab13b9c32
commit d6df4fbb5d
4 changed files with 11 additions and 3 deletions

View File

@@ -4,6 +4,9 @@ on:
pull_request:
types: [closed]
permissions:
contents: write
jobs:
create-release:
if: |

View File

@@ -3,6 +3,10 @@ on:
push:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest

View File

@@ -5,6 +5,10 @@ on:
# At 01:00 on the first day of every month
workflow_dispatch:
permissions:
pull-requests: write
contents: write
jobs:
build:
runs-on: ubuntu-latest

View File

@@ -1,9 +1,6 @@
name: 'Dependency Review'
on: [pull_request]
permissions:
contents: read
jobs:
dependency-review:
runs-on: ubuntu-latest