[GH-ISSUE #2353] Turning on debug logging via ACTIONS_RUNNER_DEBUG is not reflected in runner.debug context #1083

Closed
opened 2026-03-01 21:48:46 +03:00 by kerem · 4 comments
Owner

Originally created by @a-b on GitHub (Jun 5, 2024).
Original GitHub issue: https://github.com/nektos/act/issues/2353

Bug report info

act version:            0.2.62
GOOS:                   darwin
GOARCH:                 amd64
NumCPU:                 16
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	/var/run/docker.sock
	$HOME/.docker/run/docker.sock
Config files:           
	/Users/user/.actrc:
		-P ubuntu-latest=catthehacker/ubuntu:act-latest
		-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
		-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
	Go version:            go1.22.2
	Module path:           command-line-arguments
	Main version:          
	Main path:             
	Main checksum:         
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -X main.version=0.2.62
		DefaultGODEBUG:       httplaxcontentlength=1,httpmuxgo121=1,tls10server=1,tlsrsakex=1,tlsunsafeekm=1
		CGO_ENABLED:          1
		CGO_CFLAGS:           
		CGO_CPPFLAGS:         
		CGO_CXXFLAGS:         
		CGO_LDFLAGS:          
		GOARCH:               amd64
		GOOS:                 darwin
		GOAMD64:              v1
Docker Engine:
	Engine version:        26.1.1
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         cgroupfs
	Storage driver:        stargz
	Registry URI:          https://index.docker.io/v1/
	OS:                    Docker Desktop
	OS type:               linux
	OS version:            
	OS arch:               x86_64
	OS kernel:             6.6.26-linuxkit
	OS CPU:                16
	OS memory:             15990 MB
	Security options:
		name=seccomp,profile=unconfined
		name=cgroupns

Command used with act

act --env ACTIONS_RUNNER_DEBUG=true --workflows .github/workflows/test.yml

Describe issue

Per GHA enabling-debug-logging doc and runner-context runner's debug log status should be reflected via runner.debug expression. This behavior is not implemented in the current state of act.

No response

Workflow content

on:
  workflow_dispatch:
  push:
    branches: [ main ]

jobs:
  test-debug:
    name: Test Debug Workflow
    runs-on: ubuntu-latest
    steps:
      - name: Print expression details
        run: |
          echo "State of the runner.debug '${{ runner.debug }}'"
          env | grep ACTIONS_RUNNER_DEBUG

Relevant log output

| State of the runner.debug ''
| ACTIONS_RUNNER_DEBUG=true

Additional information

No response

Originally created by @a-b on GitHub (Jun 5, 2024). Original GitHub issue: https://github.com/nektos/act/issues/2353 ### Bug report info ```plain text act version: 0.2.62 GOOS: darwin GOARCH: amd64 NumCPU: 16 Docker host: DOCKER_HOST environment variable is not set Sockets found: /var/run/docker.sock $HOME/.docker/run/docker.sock Config files: /Users/user/.actrc: -P ubuntu-latest=catthehacker/ubuntu:act-latest -P ubuntu-22.04=catthehacker/ubuntu:act-22.04 -P ubuntu-20.04=catthehacker/ubuntu:act-20.04 -P ubuntu-18.04=catthehacker/ubuntu:act-18.04 Build info: Go version: go1.22.2 Module path: command-line-arguments Main version: Main path: Main checksum: Build settings: -buildmode: exe -compiler: gc -ldflags: -X main.version=0.2.62 DefaultGODEBUG: httplaxcontentlength=1,httpmuxgo121=1,tls10server=1,tlsrsakex=1,tlsunsafeekm=1 CGO_ENABLED: 1 CGO_CFLAGS: CGO_CPPFLAGS: CGO_CXXFLAGS: CGO_LDFLAGS: GOARCH: amd64 GOOS: darwin GOAMD64: v1 Docker Engine: Engine version: 26.1.1 Engine runtime: runc Cgroup version: 2 Cgroup driver: cgroupfs Storage driver: stargz Registry URI: https://index.docker.io/v1/ OS: Docker Desktop OS type: linux OS version: OS arch: x86_64 OS kernel: 6.6.26-linuxkit OS CPU: 16 OS memory: 15990 MB Security options: name=seccomp,profile=unconfined name=cgroupns ``` ### Command used with act ```sh act --env ACTIONS_RUNNER_DEBUG=true --workflows .github/workflows/test.yml ``` ### Describe issue Per [GHA enabling-debug-logging doc](https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/enabling-debug-logging) and [runner-context](https://docs.github.com/en/actions/learn-github-actions/contexts#runner-context) runner's debug log status should be reflected via `runner.debug` expression. This behavior is not implemented in the current state of `act`. ### Link to GitHub repository _No response_ ### Workflow content ```yml on: workflow_dispatch: push: branches: [ main ] jobs: test-debug: name: Test Debug Workflow runs-on: ubuntu-latest steps: - name: Print expression details run: | echo "State of the runner.debug '${{ runner.debug }}'" env | grep ACTIONS_RUNNER_DEBUG ``` ### Relevant log output ```sh | State of the runner.debug '' | ACTIONS_RUNNER_DEBUG=true ``` ### Additional information _No response_
kerem 2026-03-01 21:48:46 +03:00
Author
Owner

@ChristopherHX commented on GitHub (Jun 5, 2024):

IMHO, Note: --env ACTIONS_RUNNER_DEBUG=true should never work. Or show me in GitHub Actions that you can enable runner.debug via an env

I'm ok with --var ACTIONS_RUNNER_DEBUG=true or -s ACTIONS_RUNNER_DEBUG=true as a change request.

<!-- gh-comment-id:2150904066 --> @ChristopherHX commented on GitHub (Jun 5, 2024): IMHO, Note: --env ACTIONS_RUNNER_DEBUG=true should never work. Or show me in GitHub Actions that you can enable runner.debug via an env I'm ok with `--var ACTIONS_RUNNER_DEBUG=true` or `-s ACTIONS_RUNNER_DEBUG=true` as a change request.
Author
Owner

@ChristopherHX commented on GitHub (Jun 5, 2024):

Isn't ${{ runner.debug }} dependent on ACTIONS_STEP_DEBUG????

<!-- gh-comment-id:2150907411 --> @ChristopherHX commented on GitHub (Jun 5, 2024): Isn't `${{ runner.debug }}` dependent on `ACTIONS_STEP_DEBUG`????
Author
Owner

@a-b commented on GitHub (Jun 7, 2024):

Isn't ${{ runner.debug }} dependent on ACTIONS_STEP_DEBUG????

Very likely; it still makes sense to implement runner.debug for ACTIONS_STEP_DEBUG.

<!-- gh-comment-id:2153861368 --> @a-b commented on GitHub (Jun 7, 2024): > Isn't `${{ runner.debug }}` dependent on `ACTIONS_STEP_DEBUG`???? Very likely; it still makes sense to implement `runner.debug` for `ACTIONS_STEP_DEBUG`.
Author
Owner

@github-actions[bot] commented on GitHub (Dec 5, 2024):

Issue is stale and will be closed in 14 days unless there is new activity

<!-- gh-comment-id:2518816050 --> @github-actions[bot] commented on GitHub (Dec 5, 2024): Issue is stale and will be closed in 14 days unless there is new activity
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#1083
No description provided.