Enable one-click debugging via the "Enable debug logging" option when re-running Actions jobs by henrymercer · Pull Request #1132 · github/codeql-action (original) (raw)

(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