Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PAT for scheduled workflows #40

Merged
merged 3 commits into from
Apr 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/scheduled-context.yml
Original file line number Diff line number Diff line change
@@ -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 }}
7 changes: 7 additions & 0 deletions .github/workflows/scheduled-readme.yml
Original file line number Diff line number Diff line change
@@ -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 }}