mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-04 20:13:03 +00:00
52 lines
1.0 KiB
YAML
52 lines
1.0 KiB
YAML
name: Security - CodeQL
|
|
run-name: ${{ github.workflow }} - ${{ github.ref_name }}
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 3 * * 0"
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "**/*.js"
|
|
- "**/*.jsx"
|
|
- "**/*.ts"
|
|
- "**/*.tsx"
|
|
- "**/*.py"
|
|
- ".github/workflows/codeql.yml"
|
|
pull_request:
|
|
branches: [main]
|
|
paths:
|
|
- "**/*.js"
|
|
- "**/*.jsx"
|
|
- "**/*.ts"
|
|
- "**/*.tsx"
|
|
- "**/*.py"
|
|
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (CodeQL)
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: "javascript-typescript,python"
|
|
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@v3
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v3
|
|
with:
|
|
category: "/language:javascript-typescript"
|