minor tweak to codeql.yml

This commit is contained in:
hathach
2023-11-30 11:38:54 +07:00
parent 0504192fb7
commit 66b9bd52d6

View File

@@ -12,12 +12,24 @@
name: "CodeQL" name: "CodeQL"
on: on:
# push: push:
# branches: [ "main", "master" ] branches: [ 'master' ]
paths:
- 'src/**'
- 'examples/**'
- 'lib/**'
- 'hw/**'
- '.github/workflows/codeql.yml'
pull_request:
branches: [ 'master' ]
paths:
- 'src/**'
- 'examples/**'
- 'lib/**'
- 'hw/**'
- '.github/workflows/codeql.yml'
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
pull_request:
branches: '*'
jobs: jobs:
analyze: analyze:
@@ -27,8 +39,8 @@ jobs:
# - https://gh.io/supported-runners-and-hardware-resources # - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners # - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements. # Consider using larger runners for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-20.04' }} runs-on: ubuntu-latest
timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }} timeout-minutes: 360
permissions: permissions:
actions: read actions: read
contents: read contents: read
@@ -37,22 +49,20 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
language: [ 'cpp' ] language: [ 'c-cpp' ]
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ] # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
# Use only 'java' to analyze code written in Java, Kotlin or both # Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both # Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
submodules: recursive
- name: arm-none-eabi-gcc GNU Arm Embedded Toolchain - name: Install ARM GCC
uses: carlosperate/arm-none-eabi-gcc-action@v1.6.0 uses: carlosperate/arm-none-eabi-gcc-action@v1
with: with:
release: '10.3-2021.10' release: '11.2-2022.02'
# Initializes the CodeQL tools for scanning. # Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL - name: Initialize CodeQL