Aniket Katkar eac72a3db0
Chore: Add codeql blank workflow (#23921)
* add codeql blank workflow

* Remove the schedule and PR triggers
2025-10-16 16:05:01 +05:30

24 lines
592 B
YAML

name: CodeQL Advanced
on:
workflow_dispatch:
inputs:
branch:
description: "Branch to run the workflow on"
required: true
default: "main"
type: string
jobs:
analyze:
runs-on: ubuntu-latest
if: ${{ !github.event.pull_request.draft }}
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch || github.event.pull_request.head.ref || github.ref }}
token: ${{ secrets.GITHUB_TOKEN }}