Commit 7f91bc6
committed
fix update gradle wrapper GitHub action
The action previously failed:
```
Pushing branch
/usr/bin/git push --force-with-lease origin HEAD:refs/heads/gradlew-update-9.5.1
remote: Duplicate header: "Authorization"
fatal: unable to access 'https://github.com/TNG/ArchUnit/': The requested URL returned error: 400
Creating Pull Request
Error: ❌ Validation Failed: {"resource":"PullRequest","field":"head","code":"invalid"} -
https://docs.github.com/rest/pulls/pulls#create-a-pull-request
```
This strongly suggests both checkout and the wrapper-update action are configuring GitHub auth,
resulting in two Authorization headers on Git HTTP requests.
Fix: Disable persisted credentials in actions/checkout, so only the update action manages auth.
Note: Simply dropping the repo-token for the update-gradle-wrapper-action did not work either.
Signed-off-by: Manfred Hanke <Manfred.Hanke@tngtech.com>1 parent 80b5500 commit 7f91bc6
1 file changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
0 commit comments