-
Notifications
You must be signed in to change notification settings - Fork 16
ci: Fix permissions of self-hosted GitHub runner, switch to ARC #591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Fix permissions of self-hosted GitHub runner, switch to ARC #591
Conversation
There was a problem hiding this 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-setupthat 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 |
…s required for `./.github/...` actions
… which is required for `./.github/...` actions" This reverts commit ddbbe29.
…ecurity compliance
This reverts commit e8ab78c.
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 allowsudofor runner user../.github/actions/shared-setupto accumulate packages to add to ARC runner image later.