ci: add GitHub token permissions for workflows

Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>

Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18766)
This commit is contained in:
Varun Sharma 2022-07-09 07:03:23 -07:00 committed by Pauli
parent 6d594fdf52
commit c6e7f427c8
15 changed files with 51 additions and 0 deletions

View File

@ -18,6 +18,9 @@ on: [pull_request, push]
# before_script:
# - make="make -s"
permissions:
contents: read
jobs:
check_update:
runs-on: ubuntu-latest

View File

@ -9,6 +9,9 @@ name: Compiler Zoo CI
on: [push]
permissions:
contents: read
jobs:
compiler:
strategy:

View File

@ -12,8 +12,14 @@ on:
schedule:
- cron: '49 0 * * *'
permissions:
contents: read
jobs:
coverage:
permissions:
checks: write # for coverallsapp/github-action to create new checks
contents: read # for actions/checkout to fetch code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

View File

@ -9,6 +9,9 @@ name: Cross Compile
on: [pull_request, push]
permissions:
contents: read
jobs:
cross-compilation:
strategy:

View File

@ -8,6 +8,9 @@
name: FIPS Checksums
on: [pull_request]
permissions:
contents: read
jobs:
compute-checksums:
runs-on: ubuntu-latest

View File

@ -12,8 +12,14 @@ on:
types:
- completed
permissions:
contents: read
jobs:
apply-label:
permissions:
actions: read
pull-requests: write
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.event == 'pull_request' }}
steps:

View File

@ -8,6 +8,9 @@
name: Provider compat
on: [push]
permissions:
contents: read
jobs:
fips-provider-30:
runs-on: ubuntu-latest

View File

@ -9,6 +9,9 @@ name: Fuzz-checker CI
on: [push]
permissions:
contents: read
jobs:
fuzz-checker:
strategy:

View File

@ -7,6 +7,9 @@
name: CIFuzz
on: [pull_request, push]
permissions:
contents: read
jobs:
Fuzzing:
runs-on: ubuntu-latest

View File

@ -11,6 +11,9 @@ on:
schedule:
- cron: '0 5 * * *'
permissions:
contents: read
jobs:
unix:
strategy:

View File

@ -8,6 +8,9 @@
# Jobs run per pull request submission
name: Run-checker CI
on: [pull_request, push]
permissions:
contents: read
jobs:
run-checker:
strategy:

View File

@ -11,6 +11,9 @@ name: Run-checker daily
on:
schedule:
- cron: '0 6 * * *'
permissions:
contents: read
jobs:
run-checker:
strategy:

View File

@ -9,6 +9,9 @@ name: Run-checker merge
# Jobs run per merge to master
on: [push]
permissions:
contents: read
jobs:
run-checker:
strategy:

View File

@ -12,6 +12,9 @@ on:
schedule:
- cron: '20 0 * * *'
permissions:
contents: read
jobs:
coverity:
runs-on: ubuntu-latest

View File

@ -9,6 +9,9 @@ name: Windows GitHub CI
on: [pull_request, push]
permissions:
contents: read
jobs:
shared:
# Run a job for each of the specified target architectures: