set GIT_AUTH_TOKEN secret if Git context used

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-01-10 11:29:03 +01:00
parent ded8f8f101
commit 932b78563b
3 changed files with 15 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ actionsToolkit.run(
stateHelper.setInputs(inputs);
const toolkit = new Toolkit();
const gitAuthToken = process.env.BUILDX_BAKE_GIT_AUTH_TOKEN ?? inputs['github-token'];
const gitAuthToken = context.getGitAuthToken(inputs);
await core.group(`GitHub Actions runtime token ACs`, async () => {
try {