CICD-014 · Probe execution context
Encyclopedia · Jobs, steps and runner selection · All snippets
Previous · CICD-013 · Next · CICD-015
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites workflow containing the named example jobs or steps.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
uname -srm
whoami
pwd3. How it works
uname reports the job's kernel and machine details, whoami identifies the effective account, and pwd identifies the shell working directory. Capture all three inside the scheduled job.
4. Verify the result
Compare runner host and container output to identify the execution environment.
Validation syntax-validated (Bash parse). Status definitions.