Fix GitLab runner snippets to run as current user on Windows and Mac
维护者通常 3 天内回复
还没有人认领这个 Issue。
评估
调研方向
从 pkg/integrations/gitlab/snippet-darwin.sh 和 pkg/integrations/gitlab/snippet-windows.ps1 开始,然后将它们与所引用的 GitHub 和 Cirrus snippet 进行比较。验证 macOS LaunchDaemon 和 Windows runner 设置使用当前用户,且不会因高权限账户而出现权限问题,同时保留现有的 GitLab runner 行为。
由索引模型根据 Issue 内容生成。
描述
Problem
As per https://github.com/redhat-developer/mapt/pull/711, more specifically GitLab runner snippets for Windows and Mac install as system services running under privileged accounts (SYSTEM/root), unlike other integrations (GitHub Actions, Cirrus) which run as the current user.
See related comment in PR: https://github.com/redhat-developer/mapt/pull/711#issuecomment-3785957041
Impact
- Permissions issues accessing user files/directories
- Different behavior than other CI runner integrations
- Security concerns running as elevated accounts
Solution
Update snippets to match pattern from GitHub/Cirrus integrations:
Mac (snippet-darwin.sh)
- Configure LaunchDaemon UserName to run as current user
- Similar to: pkg/integrations/github/snippet-darwin.sh line 10 or pkg/integrations/cirrus/snippet-darwin.sh lines 32-35
Windows (snippet-windows.ps1)
- Either use startup folder approach (like Cirrus)
- Or configure service to run as current user
Files
- pkg/integrations/gitlab/snippet-darwin.sh
- pkg/integrations/gitlab/snippet-windows.ps1
Reference
- GitHub snippet: pkg/integrations/github/snippet-darwin.sh
- Cirrus snippet: pkg/integrations/cirrus/snippet-darwin.sh
- 主要语言
- Go
- 星标
- 26
- 派生
- 41
- 平均合并
- 3 天 14 小时
- 30 天内合并 PR
- 27
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
redhat-developer/mapt 的其他 Issue
-
kind: v0.14.7 control-plane readiness block reads the wrong kubeconfig path (provision always fails)未关闭
难度 2/5 1-3 小时 新手友好度 88/100
redhat-developer/mapt#997 ·
维护者通常 3 天内回复
-
Host/username secret values contain trailing newlines, sanitization fix breaks SSH key可能重新可做 @abdulazeem-tk4vr 于 167 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
redhat-developer/mapt#817 · 12 条评论 ·
维护者通常 3 天内回复
-
难度 4/5 3-5 天 新手友好度 45/100
redhat-developer/mapt#991 ·
维护者通常 3 天内回复
-
enhancement provider/AWS provider/IBMCLOUD target/openshift-snc
难度 4/5 3-5 天 新手友好度 57/100
redhat-developer/mapt#990 ·
维护者通常 3 天内回复
-
难度 4/5 3-5 天 新手友好度 48/100
redhat-developer/mapt#974 ·
维护者通常 3 天内回复
查看 redhat-developer/mapt 的全部 Issue
相似的 Issue
-
feat(arithmetization): update `arithmetization` to ZkC version `v1.2.38`可能已有人在做 @DavePearce 今天认领。 未关闭
难度 1/5 1 小时以内 新手友好度 78/100
LFDT-Lineth/lineth-monorepo#4679 ·
维护者通常 1 天内回复
-
macOS: MixMusic stalls as the GPU times out drawing frames, and the media keys fail to register at every start可能已有人在做 @fzn0x 今天认领。 未关闭bug priority: high
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
funding: failure logs print `<nil>` error and zero channel ID可能已有人在做 @litbot-9000 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 90/100
lightningnetwork/lnd#11676 ·
维护者通常 1 天内回复
-
effort:s impact:low raised-by:reviewer risk:low
难度 2/5 1-3 小时 新手友好度 88/100
medici-finance/assay#8050 · 1 条评论 ·
维护者通常 1 天内回复
-
bug good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复