Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1.4 KB

06_codeql_manual_trigger.md

File metadata and controls

40 lines (25 loc) · 1.4 KB

CodeQL Manual Trigger Setup

Useful Links

Instructions

  1. Ensure you have completed the 05 Codeql Advanced Setup demo.

  2. In your new repo, click the top tab Actions, then side tab CodeQL Advanced.

  3. Click the codeql.yml file link under the title "CodeQL Advanced". This will take you directly to the YML file so it can be edited in the browser.

  4. At the top of the source code, click the pencil icon in the right-side toolbar to edit the file.

  5. Update the on section to look like this:

    on:
        push:
            branches: [ "main" ]
        pull_request:
            branches: [ "main" ]
        schedule:
            - cron: '38 21 * * 2'
        workflow_dispatch:
  6. Commit the changes using the same method as the 05 Codeql Advanced Setup demo.

  7. The workflow will run automatically. Let it complete, then we will manually trigger the workflow.

  8. Click the Actions tab, then click the CodeQL Advanced workflow.

  9. There will be a Run workflow button in the upper-right corner above the workflow history. Click it.

  10. Select the branch to run the workflow on, then click the Run workflow button.

  11. Review the results as normal.