diff --git a/.github/workflows/add_to_octokit_project.yml b/.github/workflows/add_to_octokit_project.yml index 8621996e4..956f71308 100644 --- a/.github/workflows/add_to_octokit_project.yml +++ b/.github/workflows/add_to_octokit_project.yml @@ -12,9 +12,14 @@ jobs: runs-on: ubuntu-latest continue-on-error: true steps: + - uses: actions/create-github-app-token@v2 + id: app-token + with: + app-id: ${{ vars.OCTOKIT_APP_ID }} + private-key: ${{ secrets.OCTOKIT_APP_PRIVATE_KEY }} - uses: actions/add-to-project@v1.0.2 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 diff --git a/.github/workflows/immediate-response.yml b/.github/workflows/immediate-response.yml index 8a29b200f..c68899066 100644 --- a/.github/workflows/immediate-response.yml +++ b/.github/workflows/immediate-response.yml @@ -11,9 +11,14 @@ on: - opened jobs: respond-to-issue: - if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' }} + if: ${{ github.actor != 'dependabot[bot]' && github.actor != 'renovate[bot]' && github.actor != 'githubactions[bot]' && github.actor != 'octokitbot' && github.actor != 'octokit[bot]' }} runs-on: ubuntu-latest steps: + - uses: actions/create-github-app-token@v2 + 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" @@ -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 labeled 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 }} diff --git a/.github/workflows/update-prettier.yml b/.github/workflows/update-prettier.yml index e4a9ff168..d7f7f2d8a 100644 --- a/.github/workflows/update-prettier.yml +++ b/.github/workflows/update-prettier.yml @@ -11,6 +11,11 @@ jobs: update_prettier: runs-on: ubuntu-latest steps: + - uses: actions/create-github-app-token@v2 + 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: @@ -20,7 +25,7 @@ jobs: - run: npm run lint:fix - uses: gr2m/create-or-update-pull-request-action@v1.x 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.