summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorhathach <[email protected]>2023-11-30 11:38:54 +0700
committerhathach <[email protected]>2023-11-30 11:38:54 +0700
commit66b9bd52d685eb7995f7d770ee01095966c2d880 (patch)
tree6e1341f75d5e805810a83cc10a381411a5ddf6a0 /.github
parent0504192fb7b15144b62e397d3e10c73c465ced67 (diff)
minor tweak to codeql.yml
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/codeql.yml40
1 files changed, 25 insertions, 15 deletions
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index 2fc7a8582..dec071753 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -12,12 +12,24 @@
name: "CodeQL"
on:
- # push:
- # branches: [ "main", "master" ]
+ push:
+ 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:
- cron: '0 0 * * *'
- pull_request:
- branches: '*'
jobs:
analyze:
@@ -27,8 +39,8 @@ jobs:
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners
# Consider using larger runners for possible analysis time improvements.
- runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-20.04' }}
- timeout-minutes: ${{ (matrix.language == 'swift' && 120) || 360 }}
+ runs-on: ubuntu-latest
+ timeout-minutes: 360
permissions:
actions: read
contents: read
@@ -37,22 +49,20 @@ jobs:
strategy:
fail-fast: false
matrix:
- language: [ 'cpp' ]
- # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift' ]
- # Use only 'java' to analyze code written in Java, Kotlin or both
- # Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
+ language: [ 'c-cpp' ]
+ # CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
+ # Use only 'java-kotlin' to analyze code written in Java, Kotlin 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
steps:
- name: Checkout repository
uses: actions/checkout@v3
- with:
- submodules: recursive
- - name: arm-none-eabi-gcc GNU Arm Embedded Toolchain
- uses: carlosperate/[email protected]
+ - name: Install ARM GCC
+ uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
- release: '10.3-2021.10'
+ release: '11.2-2022.02'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL