mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
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:
parent
6d594fdf52
commit
c6e7f427c8
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -18,6 +18,9 @@ on: [pull_request, push]
|
||||
# before_script:
|
||||
# - make="make -s"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
check_update:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/compiler-zoo.yml
vendored
3
.github/workflows/compiler-zoo.yml
vendored
@ -9,6 +9,9 @@ name: Compiler Zoo CI
|
||||
|
||||
on: [push]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
compiler:
|
||||
strategy:
|
||||
|
6
.github/workflows/coveralls.yml
vendored
6
.github/workflows/coveralls.yml
vendored
@ -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
|
||||
|
3
.github/workflows/cross-compiles.yml
vendored
3
.github/workflows/cross-compiles.yml
vendored
@ -9,6 +9,9 @@ name: Cross Compile
|
||||
|
||||
on: [pull_request, push]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
cross-compilation:
|
||||
strategy:
|
||||
|
3
.github/workflows/fips-checksums.yml
vendored
3
.github/workflows/fips-checksums.yml
vendored
@ -8,6 +8,9 @@
|
||||
name: FIPS Checksums
|
||||
on: [pull_request]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
compute-checksums:
|
||||
runs-on: ubuntu-latest
|
||||
|
6
.github/workflows/fips-label.yml
vendored
6
.github/workflows/fips-label.yml
vendored
@ -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:
|
||||
|
3
.github/workflows/fips-provider.yml
vendored
3
.github/workflows/fips-provider.yml
vendored
@ -8,6 +8,9 @@
|
||||
name: Provider compat
|
||||
on: [push]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
fips-provider-30:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/fuzz-checker.yml
vendored
3
.github/workflows/fuzz-checker.yml
vendored
@ -9,6 +9,9 @@ name: Fuzz-checker CI
|
||||
|
||||
on: [push]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
fuzz-checker:
|
||||
strategy:
|
||||
|
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@ -7,6 +7,9 @@
|
||||
|
||||
name: CIFuzz
|
||||
on: [pull_request, push]
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
Fuzzing:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/os-zoo.yml
vendored
3
.github/workflows/os-zoo.yml
vendored
@ -11,6 +11,9 @@ on:
|
||||
schedule:
|
||||
- cron: '0 5 * * *'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
unix:
|
||||
strategy:
|
||||
|
3
.github/workflows/run-checker-ci.yml
vendored
3
.github/workflows/run-checker-ci.yml
vendored
@ -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:
|
||||
|
3
.github/workflows/run-checker-daily.yml
vendored
3
.github/workflows/run-checker-daily.yml
vendored
@ -11,6 +11,9 @@ name: Run-checker daily
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 6 * * *'
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
run-checker:
|
||||
strategy:
|
||||
|
3
.github/workflows/run-checker-merge.yml
vendored
3
.github/workflows/run-checker-merge.yml
vendored
@ -9,6 +9,9 @@ name: Run-checker merge
|
||||
# Jobs run per merge to master
|
||||
|
||||
on: [push]
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
run-checker:
|
||||
strategy:
|
||||
|
3
.github/workflows/static-analysis.yml
vendored
3
.github/workflows/static-analysis.yml
vendored
@ -12,6 +12,9 @@ on:
|
||||
schedule:
|
||||
- cron: '20 0 * * *'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
coverity:
|
||||
runs-on: ubuntu-latest
|
||||
|
3
.github/workflows/windows.yml
vendored
3
.github/workflows/windows.yml
vendored
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user