diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index de628e85..4705bec4 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -4,6 +4,11 @@ on: schedule: - cron: "0 0 * * *" workflow_dispatch: + inputs: + branch: + description: 'branch to run scans on' + default: 'main' + type: string env: BUILD_TYPE: Release @@ -31,6 +36,8 @@ jobs: - name: 'Checkout repository' uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + ref: ${{ inputs.branch }} - name: 'Install dependencies' run: | diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index feb6a412..d348e63a 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -4,6 +4,12 @@ on: branches: - main pull_request: + workflow_dispatch: + inputs: + branch: + description: 'branch to run scans on' + default: 'main' + type: string permissions: contents: read @@ -18,6 +24,8 @@ jobs: egress-policy: audit - name: Checkout code uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + ref: ${{ inputs.branch }} scan: runs-on: ubuntu-22.04 needs: checkout_code