mirror of
https://github.com/openai/codex-security.git
synced 2026-11-23 19:40:55 +08:00
* Simplify workbench dispatch, SDK helpers, and their test fixtures * test(sdk): keep distinct progress matrix helpers * test(sdk): expect canceled lifecycle for aborted component scans
47 lines
1.9 KiB
YAML
47 lines
1.9 KiB
YAML
name: workflow-quality
|
|
|
|
on:
|
|
workflow_call:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: GitHub Actions checks
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 10
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
- name: Install ShellCheck and zizmor
|
|
uses: taiki-e/install-action@86f7a0ffb25f40114606501a311ebcfaf882ea32 # v2.88.0
|
|
with:
|
|
tool: shellcheck@0.11.0,zizmor@1.30.1
|
|
- name: Install actionlint
|
|
shell: bash
|
|
run: |
|
|
archive="$RUNNER_TEMP/actionlint.tar.gz"
|
|
curl --fail --silent --show-error --location \
|
|
https://github.com/rhysd/actionlint/releases/download/v1.7.12/actionlint_1.7.12_linux_amd64.tar.gz \
|
|
--output "$archive"
|
|
printf '%s %s\n' 8aca8db96f1b94770f1b0d72b6dddcb1ebb8123cb3712530b08cc387b349a3d8 "$archive" | sha256sum --check
|
|
mkdir -p "$RUNNER_TEMP/actionlint"
|
|
tar -xzf "$archive" -C "$RUNNER_TEMP/actionlint" actionlint
|
|
printf '%s\n' "$RUNNER_TEMP/actionlint" >> "$GITHUB_PATH"
|
|
- name: Check workflow syntax and shell scripts
|
|
env:
|
|
# Enforce correctness diagnostics without changing existing shell style.
|
|
SHELLCHECK_OPTS: --severity=warning
|
|
run: |
|
|
actionlint -color
|
|
actionlint -color github-action/examples/*.yml
|
|
shellcheck .github/scripts/*.sh docker/verify-container-{compose,entrypoint}.sh github-action/scripts/setup-ubuntu-sandbox.sh
|
|
- name: Test release progress reporting
|
|
run: node --test .github/scripts/test_release_progress.mjs
|
|
- name: Check workflow security
|
|
run: zizmor --offline --strict-collection --min-severity medium --format github --config .github/zizmor.yml .github
|