Skip to content

ci: add GitHub token permissions for workflows #1089

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 5, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
env:
GO_VERSION: 1.18.3
K8S_VERSION: 1.24.2
permissions:
contents: read

jobs:

docs:
Expand All @@ -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:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-dlb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
env:
IMAGES: 'intel-dlb-plugin dlb-libdlb-demo'

permissions:
contents: read

jobs:
e2e-dlb:
name: e2e-dlb
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-dsa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-fpga.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
env:
IMAGES: 'intel-gpu-plugin intel-gpu-initcontainer'

permissions:
contents: read

jobs:
e2e-gpu:
name: e2e-gpu
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-iaa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-qat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
env:
IMAGES: 'intel-qat-plugin intel-qat-initcontainer crypto-perf'

permissions:
contents: read

jobs:
e2e-qat:
name: e2e-qat
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/e2e-sgx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down