From b18e7eecb089666e37097d195c249c04cf2de35d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 14 May 2023 14:24:19 -0400 Subject: [PATCH 1/4] Update stale.yml remove trigger on issue comments as not used anymore --- .github/workflows/stale.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 32df27d9c84..c6d8503d01d 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -9,8 +9,6 @@ on: schedule: # every day at 0:00 UTC - cron: "0 0 * * *" - issue_comment: - types: [created, deleted, edited] ############### # Run the job # From 425e54200a98e4759c34becef29edcaa6f636d33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 14 May 2023 14:25:22 -0400 Subject: [PATCH 2/4] Update stale.yml add specific permissions --- .github/workflows/stale.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index c6d8503d01d..711a24eeabb 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -9,6 +9,10 @@ on: schedule: # every day at 0:00 UTC - cron: "0 0 * * *" +permissions: + #contents: write # only for delete-branch option + issues: write + pull-requests: write ############### # Run the job # From 017c10d1a86db66cdd488c7ec31144b1a3062b01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 14 May 2023 14:43:09 -0400 Subject: [PATCH 3/4] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68d0f4a4967..f0bc3d9e6b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -53,6 +53,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - Fix local run of python test cases - Fix mkdocs documentation generation by downgrading mkdocs-glightbox to 0.3.2 - mega-linter-runner v7 upgrader + - Run stale workflow only on schedule, by @echoix in [#2641](https://github.com/oxsecurity/megalinter/pull/2641) - Documentation - Apply many updates after the use of [Vale](https://vale.sh/) on MegaLinter own sources and docs From e6dc2d8a12613345b633462d6ce3fa666c5c7c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Sun, 14 May 2023 14:45:58 -0400 Subject: [PATCH 4/4] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0bc3d9e6b5..fd75d198b90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -54,6 +54,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l - Fix mkdocs documentation generation by downgrading mkdocs-glightbox to 0.3.2 - mega-linter-runner v7 upgrader - Run stale workflow only on schedule, by @echoix in [#2641](https://github.com/oxsecurity/megalinter/pull/2641) + - Add explicit permissions to stale workflow, by @echoix in [#2641](https://github.com/oxsecurity/megalinter/pull/2641) - Documentation - Apply many updates after the use of [Vale](https://vale.sh/) on MegaLinter own sources and docs