CICD-190 · Show job platform details
Encyclopedia · CI diagnostics and evidence · All snippets
Previous · CICD-189 · Next · CICD-191
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites authorized fixture run and sanitized evidence location.
- Platforms local-linux, github-actions, gitea-actions.
- Parameters
RUNNER_ARCH,RUNNER_OS.
2. Copy the snippet
bash
uname -a
printf 'runner=%s arch=%s\n' "${RUNNER_OS:-unknown}" "${RUNNER_ARCH:-unknown}"3. How it works
uname reports the environment running this job. The formatted variables add runner OS and architecture without dumping the full environment.
4. Verify the result
Record the environment without dumping secrets.
Validation syntax-validated (Bash parse). Status definitions.