From 9e85e74c4d317f27d945ad98db8b4481a464edca Mon Sep 17 00:00:00 2001 From: Max Lobur Date: Tue, 11 Apr 2023 12:28:56 +0300 Subject: [PATCH] Use PAT for scheduled workflows (#40) * Use PAT for scheduled workflows * Update .github/workflows/scheduled-context.yml Co-authored-by: Erik Osterman (CEO @ Cloud Posse) * Update .github/workflows/scheduled-readme.yml Co-authored-by: Erik Osterman (CEO @ Cloud Posse) --------- Co-authored-by: Erik Osterman (CEO @ Cloud Posse) --- .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..3e6f4e8 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 + # 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 diff --git a/.github/workflows/scheduled-readme.yml b/.github/workflows/scheduled-readme.yml index 1cc5f0f..5cbe783 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 + # 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