ci: declare contents: read on linting and tests workflows (#3960)
linting runs prettier / yamllint / boilerplate checks. tests runs terraform/tofu plan + unit tests with matrix providers. Both are pure read - no commits, releases, or comments. Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
This commit is contained in:
4
.github/workflows/linting.yml
vendored
4
.github/workflows/linting.yml
vendored
@@ -23,6 +23,10 @@ on:
|
||||
branches:
|
||||
- master
|
||||
- fast-dev
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
linting:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
3
.github/workflows/tests.yml
vendored
3
.github/workflows/tests.yml
vendored
@@ -41,6 +41,9 @@ env:
|
||||
DEFAULT_TERRAFORM_VERSION: ${{ inputs.terraform_version || '1.12.2' }}
|
||||
DEFAULT_TOFU_VERSION: "1.11.0"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
setup-tf-providers:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user