From 3b25e3b7074d190d05809ffca1b419f490151cb5 Mon Sep 17 00:00:00 2001 From: Yifeng Xiao Date: Thu, 7 Nov 2024 15:17:57 +0800 Subject: [PATCH] Add permission for the GitHub actions --- .github/workflows/auto-release-helm-chart.yml | 4 ++++ .github/workflows/bump-k8s-dep.yml | 3 +++ .github/workflows/bump-test-k8s-dep.yml | 3 +++ 3 files changed, 10 insertions(+) diff --git a/.github/workflows/auto-release-helm-chart.yml b/.github/workflows/auto-release-helm-chart.yml index d32d796ee..8972f3600 100644 --- a/.github/workflows/auto-release-helm-chart.yml +++ b/.github/workflows/auto-release-helm-chart.yml @@ -10,6 +10,10 @@ on: workflow_dispatch: # Use for manaully trigger to debug +permissions: + contents: read + packages: write + jobs: release-helm-chart: runs-on: ubuntu-latest diff --git a/.github/workflows/bump-k8s-dep.yml b/.github/workflows/bump-k8s-dep.yml index 502391274..3378db6c9 100644 --- a/.github/workflows/bump-k8s-dep.yml +++ b/.github/workflows/bump-k8s-dep.yml @@ -6,6 +6,9 @@ on: workflow_dispatch: # Use for manaully trigger to debug +permissions: + contents: write + jobs: bump-k8s-dep-to-latest-pre-release: runs-on: ubuntu-latest diff --git a/.github/workflows/bump-test-k8s-dep.yml b/.github/workflows/bump-test-k8s-dep.yml index 0dc3b0a4e..8e57ba098 100644 --- a/.github/workflows/bump-test-k8s-dep.yml +++ b/.github/workflows/bump-test-k8s-dep.yml @@ -6,6 +6,9 @@ on: workflow_dispatch: # Use for manaully trigger to debug +permissions: + contents: write + jobs: bump-test-k8s-dep-to-latest-pre-release: runs-on: ubuntu-latest