Commit 8ce6e42
committed
ci: fix ghcr push credential consistency
The GHCR push step used `||` between independent secrets:
`BOT_TOKEN || GITHUB_TOKEN` and `BOT_LOGIN || repository_owner`.
When only one `BOT_` secret was set, credentials became a mismatched
pair (e.g. BOT_TOKEN + repository_owner), causing a `denied: denied`
authentication failure from ghcr.io.
Now `&&` ensures both `BOT_TOKEN` and `BOT_LOGIN` must exist together
to be used; otherwise it falls back to the always-available and
consistent `GITHUB_TOKEN` + `github.actor` pair.
This is backwards-compatible: setups with both bot secrets keep working.
Setups with none or only one now consistently use GITHUB_TOKEN.1 parent 367f1c9 commit 8ce6e42
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
105 | | - | |
| 104 | + | |
| 105 | + | |
106 | 106 | | |
0 commit comments