Skip to content

Commit

Permalink
Use PAT for scheduled workflows (#40)
Browse files Browse the repository at this point in the history
* Use PAT for scheduled workflows

* Update .github/workflows/scheduled-context.yml

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>

* Update .github/workflows/scheduled-readme.yml

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>

---------

Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
  • Loading branch information
max-lobur and osterman authored Apr 11, 2023
1 parent e723d44 commit 9e85e74
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/scheduled-context.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ on:
type: string
required: false
default: '["ubuntu-latest"]'
secrets:
github_access_token:
description: "GitHub API token"
required: true

jobs:
update:
Expand Down Expand Up @@ -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 }}
7 changes: 7 additions & 0 deletions .github/workflows/scheduled-readme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ on:
type: string
required: false
default: '["ubuntu-latest"]'
secrets:
github_access_token:
description: "GitHub API token"
required: true

jobs:
update:
Expand Down Expand Up @@ -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 }}

0 comments on commit 9e85e74

Please sign in to comment.