forked from open-metadata/OpenMetadata
- Notifications
You must be signed in to change notification settings - Fork 0
Latest commit
23 lines (22 loc) · 592 Bytes
/
Copy pathcodeql.yml
File metadata and controls
23 lines (22 loc) · 592 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 }}