From 8f176f3d2454e61d4e14bf8ea0ee727bc2b7020b Mon Sep 17 00:00:00 2001 From: Junjie Gao Date: Tue, 8 Oct 2024 07:39:26 +0000 Subject: [PATCH 1/2] fix: github actions permissions Signed-off-by: Junjie Gao --- .github/workflows/license-checker.yml | 3 --- .github/workflows/stale.yml | 9 ++++++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index 54e121173..17a60b501 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -28,7 +28,4 @@ permissions: jobs: check-license: - permissions: - contents: write - pull-requests: write uses: notaryproject/notation-core-go/.github/workflows/reusable-license-checker.yml@main \ No newline at end of file diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 3bdbf430e..a77a867e1 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -16,11 +16,18 @@ on: schedule: - cron: "30 1 * * *" + +permissions: + contents: read + jobs: stale: + permissions: + issues: write + pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/stale@v9 + - uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 with: stale-issue-message: "This issue is stale because it has been opened for 60 days with no activity. Remove stale label or comment. Otherwise, it will be closed in 30 days." stale-pr-message: "This PR is stale because it has been opened for 45 days with no activity. Remove stale label or comment. Otherwise, it will be closed in 30 days." From 8a582f3488608539eb84b8bd99bc74ff22bbce9a Mon Sep 17 00:00:00 2001 From: Junjie Gao Date: Tue, 8 Oct 2024 07:41:58 +0000 Subject: [PATCH 2/2] fix: update Signed-off-by: Junjie Gao --- .github/workflows/license-checker.yml | 2 +- .github/workflows/stale.yml | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index 17a60b501..ead1dcdd3 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -28,4 +28,4 @@ permissions: jobs: check-license: - uses: notaryproject/notation-core-go/.github/workflows/reusable-license-checker.yml@main \ No newline at end of file + uses: notaryproject/notation-core-go/.github/workflows/reusable-license-checker.yml@main diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a77a867e1..ea4d822c6 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -16,7 +16,6 @@ on: schedule: - cron: "30 1 * * *" - permissions: contents: read @@ -38,4 +37,3 @@ jobs: days-before-issue-close: 30 days-before-pr-close: 30 exempt-all-milestones: true -