Chore: Add codeql blank workflow (#23921)

* add codeql blank workflow

* Remove the schedule and PR triggers
This commit is contained in:
Aniket Katkar 2025-10-16 16:05:01 +05:30 committed by GitHub
parent 9b4d76d6e6
commit eac72a3db0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

23
.github/workflows/codeql.yml vendored Normal file
View File

@ -0,0 +1,23 @@
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 }}