OpsScript Gate v0.9.2
Runtime Verification Gate for Shell Scripts

ShellCheck passed with zero warnings.
Your installer still crashed on Alpine.

Syntax linters inspect AST tokens and quoting rules, but cannot determine whether external binaries exist on target systems. OpsScript Gate runs your scripts inside isolated, unprivileged container matrices to catch missing commands, dialect traps, and unattended hangs before release.

Section 01 • Runtime Simulator

Live Discrepancy Verification

Contrast clean syntactic passes with isolated container failures in real time.

File: install.sh
Editable interactive buffer • changes simulate dynamically 8 lines
Static Linter (ShellCheck 0.10.0) 0 WARNINGS
Validates AST syntax structure and POSIX variable expansion rules.
Blind Spot: Cannot verify whether external packages or binaries exist on target image.
OpsScript Gate Runtime (v0.9.2) 1 DISTRO FAILED
Executes in unprivileged, isolated containers across Linux distributions.
Resolution: Captures container exit codes, exact missing commands, and line annotations.
Remediation Suggestion Exit Code 127

The execution path calls apt-get. Alpine Linux base images use apk, resulting in termination at line 6.

# Portable conditional dispatch across package managers:
if command -v apt-get >/dev/null 2>&1; then apt-get update -qq && apt-get install -y curl;
elif command -v apk >/dev/null 2>&1; then apk add --no-cache curl; fi
Section 02 • CI Summary Artifact

GitHub Actions Summary Integration

OpsScript Gate writes formatted tables directly to $GITHUB_STEP_SUMMARY and emits native workflow annotations.

Distribution Result Exit Code Duration Diagnostic
debian:12-slim PASS 0 0.24s -
ubuntu:22.04 PASS 0 0.28s -
ubuntu:24.04 PASS 0 0.31s -
alpine:3.20 FAIL 127 0.18s apt-get: not found (line 6)
::error file=install.sh,line=6,title=OpsScript Gate (alpine:3.20)::command not found: apt-get. Hint: Alpine uses apk instead of apt-get.
Section 03 • Pipeline Automation

Workflow Definition

Executes locally within the runner Docker daemon without tokens, external webhooks, or account setup.

.github/workflows/gate.yml
# OpsScript Gate - Cross-distribution runtime verification
name: Script Runtime Compatibility
on: [push, pull_request]

jobs:
  compatibility:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Validate scripts across distributions
        uses: Mresyzz/opsscript-gate@v0.9.2
        with:
          script-path: ./install.sh
          shell: auto
          timeout-seconds: 120
Production Ready • Zero Overhead

Ready to secure your scripts across Linux distributions?

Embed container verification into your GitHub Actions workflow in less than two minutes. Zero tokens, zero external servers.

View on GitHub