From ea5604aa40501d9ddeca36bca1d4e6bd7c38855c Mon Sep 17 00:00:00 2001 From: Binbin Li Date: Fri, 26 Apr 2024 14:22:47 +0800 Subject: [PATCH] fix: add top-level read permission (#1419) --- .github/workflows/cache-cleanup.yml | 3 +++ .github/workflows/e2e-aks.yml | 3 +++ .github/workflows/e2e-cli.yml | 3 +++ .github/workflows/e2e-k8s.yml | 3 +++ .github/workflows/quick-start.yml | 3 +++ 5 files changed, 15 insertions(+) diff --git a/.github/workflows/cache-cleanup.yml b/.github/workflows/cache-cleanup.yml index c38811a41..191e5b1c8 100644 --- a/.github/workflows/cache-cleanup.yml +++ b/.github/workflows/cache-cleanup.yml @@ -4,6 +4,9 @@ on: types: - closed +permissions: + contents: read + jobs: cleanup: runs-on: ubuntu-latest diff --git a/.github/workflows/e2e-aks.yml b/.github/workflows/e2e-aks.yml index 0d6295135..0f882e349 100644 --- a/.github/workflows/e2e-aks.yml +++ b/.github/workflows/e2e-aks.yml @@ -1,5 +1,8 @@ name: e2e-aks +permissions: + contents: read + on: workflow_call: inputs: diff --git a/.github/workflows/e2e-cli.yml b/.github/workflows/e2e-cli.yml index c87e91444..1eb6ca331 100644 --- a/.github/workflows/e2e-cli.yml +++ b/.github/workflows/e2e-cli.yml @@ -3,6 +3,9 @@ name: e2e-cli on: workflow_call: +permissions: + contents: read + jobs: check-license: runs-on: ubuntu-latest diff --git a/.github/workflows/e2e-k8s.yml b/.github/workflows/e2e-k8s.yml index a02f6be09..54c0dd043 100644 --- a/.github/workflows/e2e-k8s.yml +++ b/.github/workflows/e2e-k8s.yml @@ -1,5 +1,8 @@ name: e2e-k8s +permissions: + contents: read + on: workflow_call: inputs: diff --git a/.github/workflows/quick-start.yml b/.github/workflows/quick-start.yml index a58e94874..53b582fa4 100644 --- a/.github/workflows/quick-start.yml +++ b/.github/workflows/quick-start.yml @@ -1,5 +1,8 @@ name: quick-start +permissions: + contents: read + on: pull_request_target: types: [labeled]