Skip to content

Commit 3834a35

Browse files
author
bootc-dev Bot
committed
Sync common files from infra repository
Synchronized from bootc-dev/infra@e15b962. Signed-off-by: bootc-dev Bot <bot@bootc.dev>
1 parent 1e0a45b commit 3834a35

File tree

5 files changed

+45
-58
lines changed

5 files changed

+45
-58
lines changed

.bootc-dev-infra-commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e03327703622b506788369cbaef7ea5b4d61fb3d
1+
e15b9622fcef58276464960124823108858dc646

.devcontainer/devcontainer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,14 @@
1313
},
1414
"features": {},
1515
"runArgs": [
16-
// Because we want to be able to run podman and also use e.g. /dev/kvm
17-
// among other things
18-
"--privileged"
16+
// Minimal security options for nested podman (avoids --privileged):
17+
// - label=disable: Required for mounting /proc in nested user namespace
18+
// - unmask=/proc/*: Allows access to /proc paths needed for nested containers
19+
"--security-opt", "label=disable",
20+
"--security-opt", "unmask=/proc/*",
21+
// Device access for nested containers and VMs
22+
"--device", "/dev/net/tun",
23+
"--device", "/dev/kvm"
1924
],
2025
"postCreateCommand": {
2126
// Our init script

.github/actions/bootc-ubuntu-setup/action.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ runs:
1414
run: |
1515
set -xeuo pipefail
1616
sudo df -h
17-
unwanted_pkgs=('^aspnetcore-.*' '^dotnet-.*' '^llvm-.*' 'php.*' '^mongodb-.*' '^mysql-.*'
17+
# Use globs for package patterns (apt and dpkg both support fnmatch globs)
18+
unwanted_pkgs=('aspnetcore-*' 'dotnet-*' 'llvm-*' 'php*' 'mongodb-*' 'mysql-*'
1819
azure-cli google-chrome-stable firefox mono-devel)
1920
unwanted_dirs=(/usr/share/dotnet /opt/ghc /usr/local/lib/android /opt/hostedtoolcache/CodeQL)
2021
# Start background removal operations as systemd units; if this causes
@@ -30,9 +31,12 @@ runs:
3031
for x in ${unwanted_dirs[@]}; do
3132
runcleanup rm -rf "$x"
3233
done
33-
# Apt removals in foreground, as we can't parallelize these
34+
# Apt removals in foreground, as we can't parallelize these.
35+
# Only attempt removal if matching packages are installed.
3436
for x in ${unwanted_pkgs[@]}; do
35-
/bin/time -f '%E %C' sudo apt-get remove -y $x
37+
if dpkg -l "$x" >/dev/null 2>&1; then
38+
/bin/time -f '%E %C' sudo apt-get remove -y "$x"
39+
fi
3640
done
3741
# We really want support for heredocs
3842
- name: Update podman and install just
@@ -67,7 +71,7 @@ runs:
6771
shell: bash
6872
run: |
6973
set -xeuo pipefail
70-
export BCVK_VERSION=0.9.0
74+
export BCVK_VERSION=0.10.0
7175
# see https://github.com/bootc-dev/bcvk/issues/176
7276
/bin/time -f '%E %C' sudo apt install -y libkrb5-dev pkg-config libvirt-dev genisoimage qemu-utils qemu-kvm virtiofsd libvirt-daemon-system python3-virt-firmware
7377
# Something in the stack is overriding this, but we want session right now for bcvk
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Gate PRs on OpenSSF Scorecard regressions.
2+
#
3+
# See also: https://github.com/ossf/scorecard/issues/1270
4+
name: OpenSSF Scorecard
5+
6+
on:
7+
pull_request:
8+
branches:
9+
- main
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
scorecard:
16+
name: Scorecard
17+
runs-on: ubuntu-24.04
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Check for regressions
25+
uses: bootc-dev/actions/openssf-scorecard@main
26+
with:
27+
base-sha: ${{ github.event.pull_request.base.sha }}
28+
head-sha: ${{ github.event.pull_request.head.sha }}

.github/workflows/openssf-scorecard.yml

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)