Add permissions

Limit the scope of GITHUB_TOKEN to only have write access to packages
and read access to metadata. By default it seems to be granted access
equal to that of the github.actor that triggered the workflow, which
may include access to more than the workflow needs.

Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
Gabriel Adrian Samfira 2021-12-02 18:13:27 +02:00
parent c6d26f0d37
commit 323a62d7b9
No known key found for this signature in database
GPG Key ID: 7D073DCC2C074CB5

View File

@ -19,6 +19,9 @@ on:
required: true
default: westeurope
permissions:
packages: write
env:
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUB_ID }}
DEFAULT_ADMIN_USERNAME: azureuser