From 1a0a7bc903f94c8238789b88186ea996fae108b0 Mon Sep 17 00:00:00 2001 From: Max Lobur Date: Mon, 10 Apr 2023 22:42:52 +0300 Subject: [PATCH 1/3] Use PAT for scheduled workflows --- .github/workflows/scheduled-context.yml | 7 +++++++ .github/workflows/scheduled-readme.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/scheduled-context.yml b/.github/workflows/scheduled-context.yml index ce2c160..ded7664 100644 --- a/.github/workflows/scheduled-context.yml +++ b/.github/workflows/scheduled-context.yml @@ -31,6 +31,10 @@ on: type: string required: false default: '["ubuntu-latest"]' + secrets: + github_access_token: + description: "GitHub API token" + required: true jobs: update: @@ -80,3 +84,6 @@ jobs: labels: | auto-update context + # Using PAT, otherwise PR won't trigger other workflows + # https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow + token: ${{ secrets.github_access_token }} \ No newline at end of file diff --git a/.github/workflows/scheduled-readme.yml b/.github/workflows/scheduled-readme.yml index 1cc5f0f..01efa06 100644 --- a/.github/workflows/scheduled-readme.yml +++ b/.github/workflows/scheduled-readme.yml @@ -31,6 +31,10 @@ on: type: string required: false default: '["ubuntu-latest"]' + secrets: + github_access_token: + description: "GitHub API token" + required: true jobs: update: @@ -72,3 +76,6 @@ jobs: auto-update no-release readme + # Using PAT, otherwise PR won't trigger other workflows + # https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow + token: ${{ secrets.github_access_token }} \ No newline at end of file From 51947dcd6d291f388467bf0345d58b2add38351a Mon Sep 17 00:00:00 2001 From: Max Lobur Date: Tue, 11 Apr 2023 12:26:39 +0300 Subject: [PATCH 2/3] Update .github/workflows/scheduled-context.yml Co-authored-by: Erik Osterman (CEO @ Cloud Posse) --- .github/workflows/scheduled-context.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scheduled-context.yml b/.github/workflows/scheduled-context.yml index ded7664..3e6f4e8 100644 --- a/.github/workflows/scheduled-context.yml +++ b/.github/workflows/scheduled-context.yml @@ -84,6 +84,6 @@ jobs: labels: | auto-update context - # Using PAT, otherwise PR won't trigger other workflows + # Requires a GitHub PAT used to open PRs that trigger other workflows # https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow token: ${{ secrets.github_access_token }} \ No newline at end of file From e8156b05341acdcc7834d2d4376ba6365b7adc83 Mon Sep 17 00:00:00 2001 From: Max Lobur Date: Tue, 11 Apr 2023 12:26:51 +0300 Subject: [PATCH 3/3] Update .github/workflows/scheduled-readme.yml Co-authored-by: Erik Osterman (CEO @ Cloud Posse) --- .github/workflows/scheduled-readme.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/scheduled-readme.yml b/.github/workflows/scheduled-readme.yml index 01efa06..5cbe783 100644 --- a/.github/workflows/scheduled-readme.yml +++ b/.github/workflows/scheduled-readme.yml @@ -76,6 +76,6 @@ jobs: auto-update no-release readme - # Using PAT, otherwise PR won't trigger other workflows + # Requires a GitHub PAT used to open PRs that trigger other workflows # https://docs.github.com/en/actions/using-workflows/triggering-a-workflow#triggering-a-workflow-from-a-workflow token: ${{ secrets.github_access_token }} \ No newline at end of file