GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Enable one-click debugging via the "Enable debug logging" option when re-running Actions jobs by henrymercer · Pull Request #1132 · github/codeql-action

Conversation

@henrymercer

@henrymercer henrymercer commented Jul 1, 2022

Copy link
Copy Markdown
Contributor

(As @adityasharad pointed out on the internal issue, it's actually three clicks, but you get the point :))

Users can now quickly debug a job that uses the CodeQL Action by re-running the job from the GitHub UI and selecting the "Enable debug logging" option. Debugging mode is also automatically turned on if Actions step debugging is enabled on a repo by setting the ACTIONS_STEP_DEBUG secret to true. This PR also brings all of our debugging functionality under the same banner, e.g. we print the CodeQL CLI debug logs when debug: true, not just when Actions step debugging is enabled.

Example run: the first run is the standard workflow, attempt 2 (i.e. the rerun) was triggered with the "Enable debug logging" option selected.

Merge / deployment checklist

  • Confirm this change is backwards compatible with existing workflows.
  • Confirm the readme has been updated if necessary.
  • Confirm the changelog has been updated if necessary.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
henrymercer added 3 commits July 1, 2022 17:56
@henrymercer
Enable one-click debugging via the "Enable debug logging" rerun option
53850d8
@henrymercer
Mention that debug mode is automatically enabled when step debugging on
0c729c8
@henrymercer
Add changelog note
b7da732
@henrymercer
henrymercer requested a review from a team as a code owner July 1, 2022 17:48
henrymercer added 2 commits July 1, 2022 18:56
@henrymercer
Print diagnostic messages when debug logging enabled
7e94a6c
This commit prints diagnostic messages to the Actions log when debug
logging is enabled by passing `debug: true` to `codeql-action/init` or
enabling Actions step debug logging.
@henrymercer
Add changelog note
3a5fa35
aeisenberg
aeisenberg reviewed Jul 11, 2022
View reviewed changes
Comment thread src/analyze-action.ts Resolved

Uh oh!

There was an error while loading. Please reload this page.

henrymercer added 4 commits July 12, 2022 15:49
@henrymercer
Merge pull request #1133 from github/henrymercer/log-diagnostics-when…
b380175
…-debug-enabled

Print diagnostic messages when debugging mode is enabled
@henrymercer
Use core.isDebug() instead of accessing env var
e655fb3
@henrymercer
Merge remote-tracking branch 'origin/main' into henrymercer/one-click…
b316baa
…-debug
@henrymercer
Cleanup: Use optional chaining in a couple of places
b45ac1f
@henrymercer
henrymercer requested a review from aeisenberg July 12, 2022 15:30
aeisenberg
aeisenberg approved these changes Jul 12, 2022
View reviewed changes
@henrymercer
henrymercer enabled auto-merge July 12, 2022 15:47
@henrymercer
Merge remote-tracking branch 'origin/main' into henrymercer/one-click…
dca60ba
…-debug
@henrymercer
henrymercer merged commit 1e7f770 into main Jul 12, 2022
@henrymercer
henrymercer deleted the henrymercer/one-click-debug branch July 12, 2022 17:10
This was referenced Jul 13, 2022
Merge main into releases/v2 #1140
Merged
Merge releases/v2 into releases/v1 #1142
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aeisenberg aeisenberg aeisenberg approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@henrymercer @aeisenberg
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.