Skip to content

CICD-053 · Check Gitea runner user and workspace ​

Encyclopedia · Gitea runner fundamentals · All snippets

Previous · CICD-052 · Next · CICD-054

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites Gitea Actions enabled, authorized trusted runner registered and local repository checked out when needed.
  • Platforms gitea-actions.
  • Parameters PWD.

2. Copy the snippet ​

bash
id
printf 'workspace=%s\n' "$PWD"
ls -la .

3. How it works ​

These probes run inside the job. UID, available files and current workspace are runtime observations to compare with the runner host.

4. Verify the result ​

The ID means user identity in the executor, which can differ from the host.

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