Merge pull request #1089 from varunsh-coder/token-perms

ci: add GitHub token permissions for workflows
This commit is contained in:
Ed Bartosh 2022-08-06 01:33:23 +03:00 committed by GitHub
commit f3ad7d6d4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 32 additions and 0 deletions

View File

@ -11,6 +11,9 @@ on:
env:
GO_VERSION: 1.18.3
K8S_VERSION: 1.24.2
permissions:
contents: read
jobs:
docs:
@ -37,6 +40,9 @@ jobs:
mv _build/html/* $HOME/output/
golangci:
permissions:
contents: read # for actions/checkout to fetch code
pull-requests: read # for golangci/golangci-lint-action to fetch pull requests
name: lint
runs-on: ubuntu-latest
steps:

View File

@ -11,6 +11,9 @@ on:
env:
IMAGES: 'intel-dlb-plugin dlb-libdlb-demo'
permissions:
contents: read
jobs:
e2e-dlb:
name: e2e-dlb

View File

@ -11,6 +11,9 @@ on:
env:
IMAGES: 'intel-dsa-plugin intel-idxd-config-initcontainer accel-config-demo'
permissions:
contents: read
jobs:
e2e-dsa:
name: e2e-dsa

View File

@ -11,6 +11,9 @@ on:
env:
IMAGES: 'intel-fpga-plugin intel-fpga-initcontainer intel-fpga-admissionwebhook opae-nlb-demo'
permissions:
contents: read
jobs:
e2e-fpga:
name: e2e-fpga

View File

@ -11,6 +11,9 @@ on:
env:
IMAGES: 'intel-gpu-plugin intel-gpu-initcontainer'
permissions:
contents: read
jobs:
e2e-gpu:
name: e2e-gpu

View File

@ -11,6 +11,9 @@ on:
env:
IMAGES: 'intel-iaa-plugin intel-idxd-config-initcontainer accel-config-demo'
permissions:
contents: read
jobs:
e2e-iaa:
name: e2e-iaa

View File

@ -11,6 +11,9 @@ on:
env:
IMAGES: 'intel-qat-plugin intel-qat-initcontainer crypto-perf'
permissions:
contents: read
jobs:
e2e-qat:
name: e2e-qat

View File

@ -11,6 +11,9 @@ on:
env:
IMAGES: 'intel-sgx-plugin intel-sgx-initcontainer intel-sgx-admissionwebhook'
permissions:
contents: read
jobs:
e2e-sgx:
name: e2e-sgx

View File

@ -8,9 +8,14 @@ on:
- release-0.23
- release-0.24
permissions:
contents: read
jobs:
build:
permissions:
contents: write # for Git to git push
runs-on: ubuntu-latest
steps: