mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 14:30:52 +00:00
Every write scope sat at workflow level, so it reached each job in the file: entry-push-latest handed contents, packages, actions, security-events and issues write to all eight of its jobs, and call-orchestrator to all twenty-four, including every deploy and test job of the 134-job runs. The scopes now sit on the jobs that push, release or upload SARIF. call-test-workspace, -install-make and -install-pkgmgr declared actions: write with no consumer at all, while passing the raw GITHUB_TOKEN into containers that start from mutable public tags and mount the docker socket. cron-cleanup-stale gave packages: write over the whole namespace to two jobs running third-party JavaScript that never touch a registry. Eight single-job workflows are deliberately left alone: their one job needs the scope, so moving it produces an identical effective token while risking a job block that silently replaces contents: read. A check across every uses: edge confirms no callee now declares more than its caller grants. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
33 lines
883 B
YAML
33 lines
883 B
YAML
name: "📦 Test: Install Make"
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
packages: read
|
|
|
|
jobs:
|
|
test-install-make:
|
|
name: 🛠️ Makefile
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
env:
|
|
NIX_CONFIG: |
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
|
|
|
steps:
|
|
- name: ⬇️ Checkout repository
|
|
uses: actions/checkout@v7.0.0
|
|
|
|
- name: 🔍 Resolve paths from default.env
|
|
run: |
|
|
for key in INFINITO_SRC_DIR INFINITO_VENV_DIR; do
|
|
value="$(awk -F= -v k="^${key}=" '$0 ~ k {print $2; exit}' default.env)"
|
|
test -n "${value}" || { echo "${key} not found in default.env" >&2; exit 1; }
|
|
echo "${key}=${value}" >> "$GITHUB_ENV"
|
|
done
|
|
|
|
- name: 📦 Install & test in every pkgmgr virgin container (parallel)
|
|
run: ./scripts/tests/install/make.sh
|