forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use different approach to authenticate user in request-cli-int…
…eg-test (aws#26523) The original attempt didn't work. The push ended up being tried by `github-actions[bot]` which (correctly) failed. Try a different way that should also work. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Showing
2 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,14 +35,15 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.PROJEN_GITHUB_TOKEN }} | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
- name: Submit to test-pipeline | ||
# Needs to run with PROJEN_GITHUB_TOKEN because we need permissions to force push the branch | ||
run: | | ||
git config --global user.name 'aws-cdk-automation' | ||
git config --global user.email '[email protected]' | ||
git push --force --atomic https://oauth2:${{ secrets.PROJEN_GITHUB_TOKEN }}@github.com/${{ github.repository }}.git FETCH_HEAD:test-main-pipeline | ||
git push --force --atomic ${{ github.repositoryUrl }} FETCH_HEAD:test-main-pipeline | ||
- name: Explain next steps | ||
uses: thollander/actions-comment-pull-request@v2 | ||
with: | ||
|