Restricted token permissions
This commit is contained in:
parent
f119b96cf3
commit
710df5beb9
@ -1,4 +1,4 @@
|
||||
name: 'CI'
|
||||
name: 'Main'
|
||||
|
||||
on:
|
||||
push:
|
||||
@ -15,6 +15,8 @@ jobs:
|
||||
validate-packer:
|
||||
name: 'Validate Packer configuration'
|
||||
runs-on: 'ubuntu-20.04'
|
||||
permissions:
|
||||
contents: 'read'
|
||||
defaults:
|
||||
run:
|
||||
working-directory: './packer/'
|
||||
@ -36,6 +38,8 @@ jobs:
|
||||
validate-terraform:
|
||||
name: 'Validate Terraform configuration'
|
||||
runs-on: 'ubuntu-20.04'
|
||||
permissions:
|
||||
contents: 'read'
|
||||
defaults:
|
||||
run:
|
||||
working-directory: './terraform/'
|
||||
@ -61,6 +65,8 @@ jobs:
|
||||
name: 'Build Packer image'
|
||||
needs: ['validate-packer']
|
||||
runs-on: 'ubuntu-20.04'
|
||||
permissions:
|
||||
contents: 'read'
|
||||
defaults:
|
||||
run:
|
||||
working-directory: './packer/'
|
Loading…
Reference in New Issue
Block a user