Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@denis-ryzhkov
Copy link
Collaborator

@denis-ryzhkov denis-ryzhkov commented Oct 20, 2025

  • Part of Bigger GitHub runner for k0rdent/kof #594
  • CI fails with Error: File was unable to be removed Error: EACCES: permission denied, unlink '/actions-runner/_work/...
  • sudo chown -R "$USER" "$GITHUB_WORKSPACE" fails because our self-hosted runner does not allow sudo for runner user.
  • This could be fixed in the runner image, but we'd better switch back to the ARC runner which provides great scalability and isolation of jobs by creating and deleting one runner per job in a clean way, with security compliance.
  • Reverting most of ci: use self-hosted runners with docker creds #588
  • Adding ./.github/actions/shared-setup to accumulate packages to add to ARC runner image later.

Copilot AI review requested due to automatic review settings October 20, 2025 14:06
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes permissions issues on self-hosted GitHub runners by introducing a reusable composite action that adjusts workspace ownership before checkout operations. The fix addresses CI failures where the actions/checkout step encounters permission denied errors when unlinking files in the runner's work directory.

Key changes:

  • Created a new shared composite action .github/actions/shared-setup that fixes workspace permissions
  • Updated all workflow files to use this shared setup action as the first step before checkout

Reviewed Changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
.github/actions/shared-setup/action.yaml New composite action that runs chown to fix workspace permissions on self-hosted runners
.github/workflows/release_images.yml Added shared-setup step before checkout
.github/workflows/release_charts.yml Added shared-setup step before checkout
.github/workflows/pr_test_mgmt_upgrade.yml Added shared-setup step before checkout
.github/workflows/pr_test_kof_installation.yaml Added shared-setup step before checkout
.github/workflows/pr_test_helm_chart.yml Added shared-setup step to all four jobs before checkout
.github/workflows/pr_test_adopted_upgrade.yml Added shared-setup step before checkout
.github/workflows/helm-docs.yaml Added shared-setup step before checkout
.github/workflows/build_images.yml Added shared-setup step before checkout
.github/workflows/build_charts.yml Added shared-setup step before checkout

@denis-ryzhkov denis-ryzhkov marked this pull request as draft October 20, 2025 14:24
@denis-ryzhkov denis-ryzhkov marked this pull request as ready for review October 20, 2025 14:56
@denis-ryzhkov denis-ryzhkov changed the title ci: Fix permissions of self-hosted GitHub runner ci: Fix permissions of self-hosted GitHub runner, switch to ARC Oct 20, 2025
@denis-ryzhkov denis-ryzhkov added this pull request to the merge queue Oct 20, 2025
Merged via the queue into k0rdent:main with commit 5cf4437 Oct 20, 2025
3 checks passed
@github-project-automation github-project-automation bot moved this to Done in k0rdent Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants