Files
romm/.github/workflows/copilot-setup-steps.yml
Georges-Antoine Assi 76fd21d9a6 ci: enable zizmor and fix its findings
Adds zizmor to Trunk, which audits GitHub Actions workflows, and clears
the 19 findings it reports:

- Every actions/checkout now sets persist-credentials: false, so the
  token stops being written into .git/config where any later step (or
  an uploaded artifact) could read it.
- Service ports and the release version move from run-block template
  expansions into env vars, keeping expansion out of the shell.
- Frontend Checks drops read-all for the contents: read it actually
  needs.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-21 07:30:56 -04:00

57 lines
1.7 KiB
YAML

name: Copilot Setup Steps
on:
workflow_dispatch:
permissions:
contents: read
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
services:
mariadb:
image: mariadb:12.3.3
ports:
- 3306:3306
env:
MYSQL_ROOT_PASSWORD: passwd
options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=5s --health-timeout=2s --health-retries=3 --health-start-period=30s
valkey:
image: valkey/valkey:9.0.6
ports:
- 6379:6379
options: --health-cmd="redis-cli ping" --health-interval=5s --health-timeout=2s --health-retries=3
steps:
- name: Checkout repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@bec219d24cd3e171d82865faccec33120bb574f4 # v10.1.0
- name: Install Python
run: uv python install
- name: Install system dependencies
run: sudo apt-get install -y libmariadb3 libmariadb-dev libpq-dev
- name: Install backend dependencies
run: uv sync --frozen --all-extras --dev
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: frontend/.nvmrc
- name: Install frontend dependencies
run: npm install
working-directory: frontend
- name: Install Trunk CLI
run: curl https://get.trunk.io -fsSL | bash -s -- -y
- name: Set up test database
run: mysql --host 127.0.0.1 --port 3306 -uroot -ppasswd < backend/romm_test/setup.sql