Skip to content

Commit eac72a3

Browse files
Chore: Add codeql blank workflow (open-metadata#23921)
* add codeql blank workflow * Remove the schedule and PR triggers
1 parent 9b4d76d commit eac72a3

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/codeql.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CodeQL Advanced
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
branch:
7+
description: "Branch to run the workflow on"
8+
required: true
9+
default: "main"
10+
type: string
11+
jobs:
12+
analyze:
13+
runs-on: ubuntu-latest
14+
if: ${{ !github.event.pull_request.draft }}
15+
permissions:
16+
contents: write
17+
pull-requests: write
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
ref: ${{ github.event.inputs.branch || github.event.pull_request.head.ref || github.ref }}
23+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)