From a69304b07b066cce8f7527d3935de5bb66fbbd75 Mon Sep 17 00:00:00 2001 From: harshitasao Date: Fri, 23 Aug 2024 02:47:22 +0530 Subject: [PATCH 1/2] fix: fixed the token-permission issue Signed-off-by: harshitasao --- .github/workflows/issue.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/issue.yaml b/.github/workflows/issue.yaml index 26e394fd87..0729912c9d 100644 --- a/.github/workflows/issue.yaml +++ b/.github/workflows/issue.yaml @@ -3,8 +3,14 @@ on: issues: types: [opened] +permissions: + contents: read + jobs: sync: + permissions: + contents: read # for github/issue-labeler to get repo contents + issues: write # for github/issue-labeler to create or remove labels runs-on: ubuntu-latest if: github.repository == 'backstage/backstage' From 8c52a5e5b8cf5ea49054822c9ab91251738ac553 Mon Sep 17 00:00:00 2001 From: Johan Haals Date: Wed, 28 Aug 2024 13:56:34 +0200 Subject: [PATCH 2/2] chore: format Signed-off-by: Johan Haals --- .github/workflows/issue.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/issue.yaml b/.github/workflows/issue.yaml index 0729912c9d..90dc4cd307 100644 --- a/.github/workflows/issue.yaml +++ b/.github/workflows/issue.yaml @@ -3,14 +3,14 @@ on: issues: types: [opened] -permissions: +permissions: contents: read jobs: sync: permissions: - contents: read # for github/issue-labeler to get repo contents - issues: write # for github/issue-labeler to create or remove labels + contents: read # for github/issue-labeler to get repo contents + issues: write # for github/issue-labeler to create or remove labels runs-on: ubuntu-latest if: github.repository == 'backstage/backstage'