mirror of
https://github.com/samerfarida/mcp-ssh-orchestrator.git
synced 2026-11-20 20:33:16 +00:00
- Use @v4 (latest) instead of @v3 - Add matrix strategy for actions and python - Update permissions to match official template - Update cron schedule to weekly (Tuesday) - Add manual build step placeholder
57 lines
1.3 KiB
YAML
57 lines
1.3 KiB
YAML
name: CodeQL Analysis
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
schedule:
|
|
- cron: '38 19 * * 2' # Every Tuesday at 19:38 UTC
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (${{ matrix.language }})
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
# Required for all workflows
|
|
security-events: write
|
|
|
|
# Required to fetch internal or private CodeQL packs
|
|
packages: read
|
|
|
|
# Only required for workflows in private repositories
|
|
actions: read
|
|
contents: read
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- language: actions
|
|
build-mode: none
|
|
- language: python
|
|
build-mode: none
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
build-mode: ${{ matrix.build-mode }}
|
|
|
|
- name: Run manual build steps
|
|
if: matrix.build-mode == 'manual'
|
|
shell: bash
|
|
run: |
|
|
echo 'Manual build mode not supported for this project'
|
|
exit 1
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v4
|
|
with:
|
|
category: "/language:${{matrix.language}}"
|
|
|