Set permissions for GitHub actions (#6044)

Explicitly restrict the permissions used by the boulder-ci workflow jobs.
This commit is contained in:
nathannaveen 2022-05-10 16:24:30 -04:00 committed by GitHub
parent 5451e79643
commit d40edc1933
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,9 @@ on:
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
permissions:
contents: read
jobs:
# Main test jobs. This looks like a single job, but the matrix
# items will multiply it. For example every entry in the
@ -102,6 +105,8 @@ jobs:
# one static job name that can be used to determine success of the job
# in GitHub branch protection.
boulder_ci_test_matrix_status:
permissions:
contents: none
if: ${{ always() }}
runs-on: ubuntu-latest
name: Boulder CI Test Matrix