ci(quality): stop installing ripgrep and setting sysctl from the gate (#1710)
The check job now runs on the archie-quality self-hosted runner under an
unprivileged user, so the sudo apt-get install and sudo sysctl steps fail,
exactly as the deploy gate did before 3b372b4a. Both are host provisioning:
ripgrep is installed on the runner host and the userns restriction belongs in
sysctl.d. The namespace check stays, without sudo.
This commit is contained in:
1 file changed
+5
-9
@@ -20,12 +20,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Verify extension namespace support
|
# ripgrep and the unprivileged-userns sysctl are provisioned on the host.
|
||||||
run: |
|
# A self-hosted runner should not need sudo, and installing a package on
|
||||||
if [ -e /proc/sys/kernel/apparmor_restrict_unprivileged_userns ]; then
|
# every run is not the gate's job.
|
||||||
sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
|
- name: Verify unprivileged user namespaces
|
||||||
fi
|
run: unshare --user --map-root-user --net true
|
||||||
unshare --user --map-root-user --net true
|
|
||||||
|
|
||||||
- uses: actions/setup-go@v5
|
- uses: actions/setup-go@v5
|
||||||
with:
|
with:
|
||||||
@@ -46,9 +45,6 @@ jobs:
|
|||||||
go install mvdan.cc/gofumpt@v0.11.0
|
go install mvdan.cc/gofumpt@v0.11.0
|
||||||
bash tools/proto.sh install
|
bash tools/proto.sh install
|
||||||
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y --no-install-recommends ripgrep
|
|
||||||
|
|
||||||
- name: Ensure contract baseline ref
|
- name: Ensure contract baseline ref
|
||||||
run: |
|
run: |
|
||||||
if ! git show-ref --verify --quiet refs/heads/main; then
|
if ! git show-ref --verify --quiet refs/heads/main; then
|
||||||
|
|||||||
Reference in new issue
Block a user