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

ci: replace OCTOKITBOT_PROJECT_ACTION_TOKEN and OCTOKITBOT_PAT with a token from https://github.com/apps/octokit #482

Merged
merged 1 commit into from
May 31, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion .github/workflows/add_to_octokit_project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,15 @@ jobs:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.OCTOKIT_APP_ID }}
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
owner: octokit
- uses: actions/[email protected]
with:
project-url: https://github.com/orgs/octokit/projects/10
github-token: ${{ secrets.OCTOKITBOT_PROJECT_ACTION_TOKEN }}
github-token: ${{ steps.app-token.outputs.token }}
labeled: "Status: Stale"
label-operator: NOT
6 changes: 6 additions & 0 deletions .github/workflows/immediate-response.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ jobs:
if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }}
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.OCTOKIT_APP_ID }}
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
- name: Determine issue or PR number
id: extract
run: echo "NUMBER=${{ github.event.issue.number || github.event.pull_request.number }}" >> "$GITHUB_OUTPUT"
Expand All @@ -27,3 +32,4 @@ jobs:
We have a [process in place](https://github.com/octokit/.github/blob/main/community/prioritization_response.md#overview) for prioritizing and responding to your input.
Because you are a part of this community please feel free to comment, add to, or pick up any issues/PRs that are labled with `Status: Up for grabs`.
You & others like you are the reason all of this works! So thank you & happy coding! 🚀
token: ${{ steps.app-token.outputs.token }}
7 changes: 6 additions & 1 deletion .github/workflows/update-prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ jobs:
update_prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.OCTOKIT_APP_ID }}
private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
Expand All @@ -16,7 +21,7 @@ jobs:
- run: npm run lint:fix
- uses: gr2m/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.OCTOKITBOT_PAT }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
with:
title: Prettier updated
body: An update to prettier required updates to your code.
Expand Down