Skip to content

CICD-193 · Show processes in a disposable runner ​

Encyclopedia · CI diagnostics and evidence · All snippets

Previous · CICD-192 · Next · CICD-194

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.

2. Copy the snippet ​

bash
ps -eo pid,comm,%cpu,rss --sort=-rss | head -n 15

3. How it works ​

ps prints selected fields ordered by resident memory and head keeps the list bounded. It omits argument strings that could contain sensitive values.

4. Verify the result ​

Do not print process arguments if credentials can appear.

Validation syntax-validated (Bash parse). Status definitions.