Skip to content

Commit

Permalink
Merge pull request #5026 from opengisch/m-kuhn-patch-1
Browse files Browse the repository at this point in the history
Create codeql.yml
  • Loading branch information
m-kuhn authored Feb 12, 2024
2 parents 320bb75 + 291347e commit f6e4807
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "CodeQL"

on:
push:
branches: [ "master", "release-*" ]
pull_request:
branches: [ "master", "release-*" ]
schedule:
- cron: '45 16 * * 3'

jobs:
code-ql:
name: Analyze
runs-on: 'ubuntu-latest'
timeout-minutes: 360
permissions:
security-events: write

strategy:
fail-fast: false
matrix:
language:
# - 'c-cpp' # Tested as part of the linux builds
- 'python'
- 'ruby'

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
10 changes: 10 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ jobs:
with:
submodules: recursive

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'c-cpp'

- name: 🌾 Prepare variables
id: vars
run: |
Expand Down Expand Up @@ -140,3 +145,8 @@ jobs:
SENTRY_PROJECT_SLUG: qfield
run: |
bundle exec fastlane run sentry_upload_dif path:${{ env.CMAKE_BUILD_DIR }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:c-cpp"

1 comment on commit f6e4807

@qfield-fairy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.