-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use custom token secret for pushes (#2725)
* Use custom token secret for pushes Renovate PRs have been getting auto-closed and I suspect it's because we're using the jobs own token to push to the repository. Use a custom token instead and hope that fixes the issue. * Fix bazel file sha? Did they actually go and upload a new version of this?
- Loading branch information
1 parent
dca9acb
commit c3961d6
Showing
2 changed files
with
3 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,6 @@ jobs: | |
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
|
@@ -41,7 +39,7 @@ jobs: | |
if output=$(git status --porcelain) && [ ! -z "$output" ]; then | ||
git config user.name "Renovate Bot" | ||
git config user.email "[email protected]" | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/grpc-ecosystem/grpc-gateway.git | ||
git remote set-url origin https://x-access-token:${{ secrets.GH_PUSH_TOKEN }}@github.com/grpc-ecosystem/grpc-gateway.git | ||
git commit --amend --no-edit | ||
git push --force-with-lease origin ${{ github.ref_name }} | ||
fi | ||
|
@@ -53,8 +51,6 @@ jobs: | |
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
needs: | ||
# Run after update_repositoriesbzl to avoid | ||
# git conflicts | ||
|
@@ -70,7 +66,7 @@ jobs: | |
if output=$(git status --porcelain) && [ ! -z "$output" ]; then | ||
git config user.name "Renovate Bot" | ||
git config user.email "[email protected]" | ||
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/grpc-ecosystem/grpc-gateway.git | ||
git remote set-url origin https://x-access-token:${{ secrets.GH_PUSH_TOKEN }}@github.com/grpc-ecosystem/grpc-gateway.git | ||
git commit --amend --no-edit | ||
git push --force-with-lease origin ${{ github.ref_name }} | ||
fi |
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