Skip to content

Conversation

dscho
Copy link
Member

@dscho dscho commented Feb 24, 2025

Previously, the Actions runner was run under the NT AUTHORITY\NETWORK SERVICE account, which lacks the permissions to install Git for Windows. However, that is precisely what the git-artifacts workflow is supposed to do.

Tweaking the ./config.cmd invocation by adding `--windowslogonaccount "NT AUTHORITY\SYSTEM"`` fixes the issue.

Previously, the Actions runner was run under the `NT AUTHORITY\NETWORK
SERVICE` account, which lacks the permissions to install Git for
Windows. However, that is precisely what the `git-artifacts` workflow
is supposed to do.

Tweaking the `./config.cmd` invocation by adding `--windowslogonaccount
"NT AUTHORITY\SYSTEM"`` fixes the issue.

Signed-off-by: Dennis Ameling <[email protected]>
Signed-off-by: Johannes Schindelin <[email protected]>
@dscho dscho self-assigned this Feb 24, 2025
@dscho
Copy link
Member Author

dscho commented Feb 24, 2025

I started a workflow run to create a runner using this branch, and queued a re-run of the previously-failing git-artifacts job. Let's see how that will pan out.

@dscho
Copy link
Member Author

dscho commented Feb 24, 2025

I started a workflow run to create a runner using this branch, and queued a re-run of the previously-failing git-artifacts job. Let's see how that will pan out.

sigh

GitHub workflows is still enemies with artifacts from previous runs...

@dscho
Copy link
Member Author

dscho commented Feb 24, 2025

I started a new create-azure-self-hosted-runner run and a custom workflow to verify that Git for Windows can be installed.

@dscho
Copy link
Member Author

dscho commented Feb 24, 2025

I started a new create-azure-self-hosted-runner run and a custom workflow to verify that Git for Windows can be installed.

Success.

@dscho dscho merged commit 43c7b94 into main Feb 24, 2025
2 checks passed
@dscho dscho deleted the fix-installing-g4w-on-self-hosted-arm64-runners branch February 24, 2025 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix "Access denied" problem in the git-artifacts CI runs

2 participants