chore(github): add the repository bot baseline
CI / test-e2e (push) Blocked by required conditions
CI / lint-python (push) Blocked by required conditions
Ruff (Python code sniffer) / lint-python (push) Blocked by required conditions
CI / quality (push) Skipped
CI / security-codeql (push) Blocked by required conditions
CodeQL Advanced / Check security (none, actions) (push) Blocked by required conditions
CodeQL Advanced / Check security (none, python) (push) Blocked by required conditions
CI / test-unit (push) Blocked by required conditions
Test Units / test-unit (push) Blocked by required conditions
CI / test-integration (push) Blocked by required conditions
Test Code Integration / test-integration (push) Blocked by required conditions
CI / test-env-virtual (push) Blocked by required conditions
Test OS Containers / test-env-virtual (arch) (push) Blocked by required conditions
Test OS Containers / test-env-virtual (centos) (push) Blocked by required conditions
Test OS Containers / test-env-virtual (debian) (push) Blocked by required conditions
Test OS Containers / test-env-virtual (fedora) (push) Blocked by required conditions
Test OS Containers / test-env-virtual (ubuntu) (push) Blocked by required conditions
CI / test-env-nix (push) Blocked by required conditions
Test Virgin Nix (flake only) / test-env-nix (arch) (push) Blocked by required conditions
Test Virgin Nix (flake only) / test-env-nix (centos) (push) Blocked by required conditions
Test Virgin Nix (flake only) / test-env-nix (debian) (push) Blocked by required conditions
Test Virgin Nix (flake only) / test-env-nix (fedora) (push) Blocked by required conditions
Test Virgin Nix (flake only) / test-env-nix (ubuntu) (push) Blocked by required conditions
Test End-To-End / test-e2e (arch) (push) Blocked by required conditions
Test End-To-End / test-e2e (centos) (push) Blocked by required conditions
Test End-To-End / test-e2e (debian) (push) Blocked by required conditions
Test End-To-End / test-e2e (fedora) (push) Blocked by required conditions
Test End-To-End / test-e2e (ubuntu) (push) Blocked by required conditions
CI / test-virgin (push) Blocked by required conditions
Test Virgin / test-virgin (arch, root) (push) Blocked by required conditions
Test Virgin / test-virgin (arch, user) (push) Blocked by required conditions
Test Virgin / test-virgin (centos, root) (push) Blocked by required conditions
Test Virgin / test-virgin (centos, user) (push) Blocked by required conditions
Test Virgin / test-virgin (debian, root) (push) Blocked by required conditions
Test Virgin / test-virgin (debian, user) (push) Blocked by required conditions
Test Virgin / test-virgin (fedora, root) (push) Blocked by required conditions
Test Virgin / test-virgin (fedora, user) (push) Blocked by required conditions
Test Virgin / test-virgin (ubuntu, root) (push) Blocked by required conditions
Test Virgin / test-virgin (ubuntu, user) (push) Blocked by required conditions
CI / lint-shell (push) Blocked by required conditions
ShellCheck / lint-shell (push) Blocked by required conditions
CI / lint-docker (push) Blocked by required conditions
Docker Linter / Lint Dockerfile (push) Blocked by required conditions
CI / test-e2e (push) Blocked by required conditions
CI / lint-python (push) Blocked by required conditions
Ruff (Python code sniffer) / lint-python (push) Blocked by required conditions
CI / quality (push) Skipped
CI / security-codeql (push) Blocked by required conditions
CodeQL Advanced / Check security (none, actions) (push) Blocked by required conditions
CodeQL Advanced / Check security (none, python) (push) Blocked by required conditions
CI / test-unit (push) Blocked by required conditions
Test Units / test-unit (push) Blocked by required conditions
CI / test-integration (push) Blocked by required conditions
Test Code Integration / test-integration (push) Blocked by required conditions
CI / test-env-virtual (push) Blocked by required conditions
Test OS Containers / test-env-virtual (arch) (push) Blocked by required conditions
Test OS Containers / test-env-virtual (centos) (push) Blocked by required conditions
Test OS Containers / test-env-virtual (debian) (push) Blocked by required conditions
Test OS Containers / test-env-virtual (fedora) (push) Blocked by required conditions
Test OS Containers / test-env-virtual (ubuntu) (push) Blocked by required conditions
CI / test-env-nix (push) Blocked by required conditions
Test Virgin Nix (flake only) / test-env-nix (arch) (push) Blocked by required conditions
Test Virgin Nix (flake only) / test-env-nix (centos) (push) Blocked by required conditions
Test Virgin Nix (flake only) / test-env-nix (debian) (push) Blocked by required conditions
Test Virgin Nix (flake only) / test-env-nix (fedora) (push) Blocked by required conditions
Test Virgin Nix (flake only) / test-env-nix (ubuntu) (push) Blocked by required conditions
Test End-To-End / test-e2e (arch) (push) Blocked by required conditions
Test End-To-End / test-e2e (centos) (push) Blocked by required conditions
Test End-To-End / test-e2e (debian) (push) Blocked by required conditions
Test End-To-End / test-e2e (fedora) (push) Blocked by required conditions
Test End-To-End / test-e2e (ubuntu) (push) Blocked by required conditions
CI / test-virgin (push) Blocked by required conditions
Test Virgin / test-virgin (arch, root) (push) Blocked by required conditions
Test Virgin / test-virgin (arch, user) (push) Blocked by required conditions
Test Virgin / test-virgin (centos, root) (push) Blocked by required conditions
Test Virgin / test-virgin (centos, user) (push) Blocked by required conditions
Test Virgin / test-virgin (debian, root) (push) Blocked by required conditions
Test Virgin / test-virgin (debian, user) (push) Blocked by required conditions
Test Virgin / test-virgin (fedora, root) (push) Blocked by required conditions
Test Virgin / test-virgin (fedora, user) (push) Blocked by required conditions
Test Virgin / test-virgin (ubuntu, root) (push) Blocked by required conditions
Test Virgin / test-virgin (ubuntu, user) (push) Blocked by required conditions
CI / lint-shell (push) Blocked by required conditions
ShellCheck / lint-shell (push) Blocked by required conditions
CI / lint-docker (push) Blocked by required conditions
Docker Linter / Lint Dockerfile (push) Blocked by required conditions
Quality req 014 (Main 2.0 SECURITE by operator order; Allstar dropped): CODEOWNERS with the owner for every path; dependabot.yml with pip security updates only (open-pull-requests-limit 0, one security group), github-actions and docker weekly grouped version updates, only the existing dependencies label; security-scorecard.yml standalone with pinned actions. Virgin tests without code in code (operator denial d8b0c6c8): the inline bash -lc scripts leave the workflow for scripts/test/virgin/run.sh, root.sh, user.sh and dev.sh, each called with bash -l; test-virgin.yml is one matrix job (mode x distro) whose run step only calls run.sh, matrix values reach the shell through env. test-virgin-user.yml and test-virgin-root.yml are removed, the workflow folder stays at 15 files. | 🌿 Branch | 📊 Diff stat | 🎯 Fix | 💥 Break | 💸 Tokens | ⏱️ Velocity | 🛡️ Security | 🏆 Score | Gate | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | chore/repository-bot-baseline | 11 files +168/-138 | 90 % | 4 % | – | – | 100 % | 86 | ✅ 90/5, tokens and velocity <= 100, security 100 % | Evidence: shellcheck -x clean on the four scripts, actionlint clean on test-virgin.yml, ci.yml and security-scorecard.yml, yamllint clean on dependabot.yml, MEDUSA 100 % critical 0. Break 4 %: virgin rework unproven until PR CI; check names become test-virgin / test-virgin (mode, distro). Operator review 7bed4c46 (re-card of fa241c7b). Created-with: https://s.veen.world/skills Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2c70837d00
commit
235a43225b
11 files changed
+168
-138
No files matched your search
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd /opt/src/pkgmgr
|
||||
make setup-venv
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
. "$HOME/.venvs/pkgmgr/bin/activate"
|
||||
|
||||
pkgmgr version pkgmgr
|
||||
|
||||
export NIX_REMOTE=local
|
||||
nix run /opt/src/pkgmgr#pkgmgr -- version pkgmgr
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
git config --global --add safe.directory /opt/src/pkgmgr
|
||||
|
||||
make install
|
||||
make setup
|
||||
|
||||
# shellcheck source=/dev/null
|
||||
. "$HOME/.venvs/pkgmgr/bin/activate"
|
||||
|
||||
pkgmgr update pkgmgr --clone-mode shallow --no-verification
|
||||
pkgmgr version pkgmgr
|
||||
|
||||
nix run /opt/src/pkgmgr#pkgmgr -- version pkgmgr
|
||||
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
mode="$1"
|
||||
distro="$2"
|
||||
|
||||
case "$mode" in
|
||||
root) volumes=(-v pkgmgr_repos:/root/Repositories -v pkgmgr_pip_cache:/root/.cache/pip) ;;
|
||||
user) volumes=() ;;
|
||||
*)
|
||||
echo "usage: $0 root|user <distro>" >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
|
||||
docker run --rm \
|
||||
-v "$PWD":/opt/src/pkgmgr \
|
||||
"${volumes[@]}" \
|
||||
-e NIX_CONFIG="${NIX_CONFIG}" \
|
||||
-w /opt/src/pkgmgr \
|
||||
"ghcr.io/kevinveenbirkenbach/base-${distro}:latest" \
|
||||
bash -l "scripts/test/virgin/${mode}.sh"
|
||||
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
make install
|
||||
|
||||
useradd -m dev
|
||||
echo "dev ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/dev
|
||||
chmod 0440 /etc/sudoers.d/dev
|
||||
chown -R dev:dev /opt/src/pkgmgr
|
||||
|
||||
mkdir -p /nix/store /nix/var/nix /nix/var/log/nix /nix/var/nix/profiles
|
||||
chown -R dev:dev /nix
|
||||
chmod 0755 /nix
|
||||
chmod 1777 /nix/store
|
||||
|
||||
sudo -H -u dev env \
|
||||
HOME=/home/dev \
|
||||
NIX_CONFIG="$NIX_CONFIG" \
|
||||
PKGMGR_DISABLE_NIX_FLAKE_INSTALLER=1 \
|
||||
bash -l /opt/src/pkgmgr/scripts/test/virgin/dev.sh
|
||||
Reference in new issue
Block a user