2021-09-03 23:55:59 +00:00
|
|
|
name: "CodeQL"
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
2023-02-17 12:56:10 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '.gitignore'
|
|
|
|
- '.gitattributes'
|
|
|
|
- 'res/**'
|
|
|
|
- '**.cmd'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rc'
|
|
|
|
- '**.sh'
|
|
|
|
- '**.txt'
|
|
|
|
- '**.xml'
|
2021-09-03 23:55:59 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
2023-02-17 12:56:10 +00:00
|
|
|
paths-ignore:
|
|
|
|
- '.gitignore'
|
|
|
|
- '.gitattributes'
|
|
|
|
- 'res/**'
|
|
|
|
- '**.cmd'
|
|
|
|
- '**.md'
|
|
|
|
- '**.rc'
|
|
|
|
- '**.sh'
|
|
|
|
- '**.txt'
|
|
|
|
- '**.xml'
|
2021-09-03 23:55:59 +00:00
|
|
|
|
|
|
|
env:
|
|
|
|
SOLUTION_FILE_PATH: ./rufus.sln
|
2021-09-07 22:39:04 +00:00
|
|
|
BUILD_CONFIGURATION: Release
|
2021-09-07 00:01:56 +00:00
|
|
|
TARGET_PLATFORM: x64
|
2021-09-03 23:55:59 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
CodeQL-Build:
|
2022-05-31 15:30:19 +00:00
|
|
|
runs-on: windows-latest
|
2021-09-03 23:55:59 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
security-events: write
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-09-08 16:13:30 +00:00
|
|
|
uses: actions/checkout@v4
|
2021-09-07 00:01:56 +00:00
|
|
|
|
2021-09-03 23:55:59 +00:00
|
|
|
- name: Initialize CodeQL
|
2024-01-08 14:01:30 +00:00
|
|
|
uses: github/codeql-action/init@v3
|
2021-09-03 23:55:59 +00:00
|
|
|
with:
|
|
|
|
languages: cpp
|
2021-09-07 00:01:56 +00:00
|
|
|
|
2021-09-03 23:55:59 +00:00
|
|
|
- name: Add MSBuild to PATH
|
2024-02-07 19:24:17 +00:00
|
|
|
uses: microsoft/setup-msbuild@v2
|
2021-11-16 17:50:20 +00:00
|
|
|
with:
|
|
|
|
msbuild-architecture: x64
|
2021-09-07 00:01:56 +00:00
|
|
|
|
2021-09-03 23:55:59 +00:00
|
|
|
- name: Build
|
2021-09-07 00:01:56 +00:00
|
|
|
run: msbuild ${{env.SOLUTION_FILE_PATH}} /m /p:Configuration=${{ env.BUILD_CONFIGURATION}},Platform=${{ env.TARGET_PLATFORM }}
|
|
|
|
|
2021-09-03 23:55:59 +00:00
|
|
|
- name: Perform CodeQL Analysis
|
2024-01-08 14:01:30 +00:00
|
|
|
uses: github/codeql-action/analyze@v3
|