mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-21 15:36:50 -05:00
* Enhance CI workflows to support repository dispatch events and improve branch handling - Added support for `repository_dispatch` events in build, check, and codeql workflows. - Updated concurrency group to include `client_payload.pr_number` for better context. - Modified checkout steps to reference the correct branch from `client_payload` if available. * Add release notes for PR #5586 --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
40 lines
934 B
YAML
40 lines
934 B
YAML
name: CodeQL
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
repository_dispatch:
|
|
types: [vrt_updated]
|
|
schedule:
|
|
- cron: '23 11 * * 6'
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.client_payload.pr_number || github.ref }}
|
|
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.event.client_payload.branch || github.ref }}
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: javascript
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v3
|
|
with:
|
|
category: '/language:javascript'
|