Github: Enable workflow_dispatch for codeql

This commit is contained in:
Jonathan G Rennison
2023-02-15 00:07:07 +00:00
parent a08ce897c0
commit 2b4b2f605d

View File

@@ -1,13 +1,18 @@
name: CodeQL name: CodeQL
on: on:
push: # push:
branches: # branches:
- master # - master
pull_request: # pull_request:
# The branches below must be a subset of the branches above # # The branches below must be a subset of the branches above
branches: # branches:
- master # - master
workflow_dispatch:
inputs:
ref:
description: 'Ref to build (for Pull Requests, use refs/pull/NNN/head)'
required: true
jobs: jobs:
analyze: analyze:
@@ -20,8 +25,15 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
if: github.event_name != 'workflow_dispatch'
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Checkout (Manual)
if: github.event_name == 'workflow_dispatch'
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.ref }}
- name: Install dependencies - name: Install dependencies
run: | run: |
echo "::group::Update apt" echo "::group::Update apt"