Skip to content

Commit f66be9c

Browse files
authored
ci: use primer integration app for status checks (#7158)
1 parent 72fcf53 commit f66be9c

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/status-checks.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ jobs:
1313
runs-on: ubuntu-latest
1414
if: "${{ contains(github.event.pull_request.labels.*.name, 'integration-tests: skipped manually') }}"
1515
steps:
16+
- name: Generate token for primer
17+
id: generate_primer_token
18+
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
19+
with:
20+
app-id: 902635
21+
owner: 'primer'
22+
private-key: ${{ secrets.PRIMER_INTEGRATION_APP_PRIVATE_KEY }}
1623
- name: Override status checks
1724
run: |
1825
# Get the timeline event ID for the label being added
@@ -39,6 +46,6 @@ jobs:
3946
-f description='Skipped' \
4047
-f target_url="$TARGET_URL"
4148
env:
42-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49+
GH_TOKEN: ${{ steps.generate_primer_token.outputs.token }}
4350
SHA: ${{ github.event.pull_request.head.sha }}
4451
PR_NUMBER: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)