{"id":13474025,"url":"https://github.com/hmarr/debug-action","last_synced_at":"2025-10-09T15:26:09.008Z","repository":{"id":53742455,"uuid":"172281423","full_name":"hmarr/debug-action","owner":"hmarr","description":"🛠 Show environment variables and event JSON in the Action logs","archived":false,"fork":false,"pushed_at":"2024-02-03T16:12:20.000Z","size":19,"stargazers_count":117,"open_issues_count":0,"forks_count":19,"subscribers_count":2,"default_branch":"v3","last_synced_at":"2025-04-03T04:06:21.419Z","etag":null,"topics":["actions","github-actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hmarr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-24T01:01:45.000Z","updated_at":"2025-03-27T13:48:08.000Z","dependencies_parsed_at":"2024-09-01T18:31:21.999Z","dependency_job_id":"482406a7-570d-4c24-9989-c0f714e1a85e","html_url":"https://github.com/hmarr/debug-action","commit_stats":{"total_commits":16,"total_committers":4,"mean_commits":4.0,"dds":0.3125,"last_synced_commit":"f7318c783045ac39ed9bb497e22ce835fdafbfe6"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmarr%2Fdebug-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmarr%2Fdebug-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmarr%2Fdebug-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hmarr%2Fdebug-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hmarr","download_url":"https://codeload.github.com/hmarr/debug-action/tar.gz/refs/heads/v3","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247027941,"owners_count":20871626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github-actions"],"created_at":"2024-07-31T16:01:08.932Z","updated_at":"2025-10-09T15:26:03.974Z","avatar_url":"https://github.com/hmarr.png","language":"JavaScript","funding_links":[],"categories":["Community Resources","JavaScript"],"sub_categories":["Utility"],"readme":"# Debug GitHub Action\n\n**Name:** `hmarr/debug-action`\n\nPrint the environment variables and the event payload. Useful for developing or\ndebugging GitHub Actions.\n\nSecrets are automatically filtered in the Actions logs.\n\n**Important:** use v3.0.0 or later, as v1 was designed for the initial GitHub Actions beta and no longer works as expected, and v2 uses node16, which has now been deprecated.\n\n## Usage instructions\n\nAdd a step with `- uses: hmarr/debug-action@v3` to a workflow file. Here's an example of a complete workflow file:\n\n```yaml\nname: Debug\non: pull_request_target\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: hmarr/debug-action@v3\n```\n\n\n## Example output (in the Actions logs)\n\n```\n▶ Environment variables\n  ACTIONS_RUNTIME_TOKEN=***\n  CI=true\n  GITHUB_ACTION=hmarrdebug-action\n  GITHUB_ACTIONS=true\n  GITHUB_ACTION_REF=v2.0.0\n  GITHUB_ACTION_REPOSITORY=hmarr/debug-action\n  GITHUB_ACTOR=hmarr\n  GITHUB_API_URL=https://api.github.com\n  GITHUB_BASE_REF=main\n  GITHUB_EVENT_NAME=pull_request_target\n  GITHUB_EVENT_PATH=/home/runner/work/_temp/_github_workflow/event.json\n  GITHUB_HEAD_REF=patch-1\n  GITHUB_JOB=build\n  GITHUB_REF=refs/heads/main\n  GITHUB_REPOSITORY=hmarr/demo\n  GITHUB_REPOSITORY_OWNER=hmarr\n  GITHUB_RUN_ID=658297586\n  GITHUB_RUN_NUMBER=15\n  GITHUB_SERVER_URL=https://github.com\n  GITHUB_SHA=a4171998f9bf51fc5b9d0283b7d5243ac28954d1\n  GITHUB_WORKFLOW=approve\n  GITHUB_WORKSPACE=/home/runner/work/demo/demo\n  HOME=/home/runner\n  INPUT_GITHUB-TOKEN=***\n  INVOCATION_ID=44ad8f42f5244809971260b35b889a08\n  LEIN_HOME=/usr/local/lib/lein\n  LEIN_JAR=/usr/local/lib/lein/self-installs/leiningen-2.9.5-standalone.jar\n  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\n  RUNNER_OS=Linux\n  RUNNER_TOOL_CACHE=/opt/hostedtoolcache\n  RUNNER_USER=runner\n  RUNNER_WORKSPACE=/home/runner/work/demo\n  USER=runner\n\n▶ Event JSON\n  {\n    \"action\": \"opened\",\n    \"number\": 20,\n    \"pull_request\": {\n      ...\n    }\n  }\n```\n\nThat example is truncated a bit, but you get the idea.\n\n## Development and release process\n\nEach major version corresponds to a branch (e.g. `v1`, `v2`). The latest major\nversion (`v3` at the time of writing) is the repository's default branch.\nReleases are tagged with semver-style version numbers (e.g. `v1.2.3`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmarr%2Fdebug-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhmarr%2Fdebug-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhmarr%2Fdebug-action/lists"}