mirror of
https://github.com/microsoft/DirectXTex.git
synced 2025-07-09 03:30:13 +02:00
Bump github/codeql-action from 3.28.16 to 3.28.18 (#619)
This commit is contained in:
parent
cb3be57e9c
commit
e8c2e30f19
156
.github/workflows/codeql.yml
vendored
156
.github/workflows/codeql.yml
vendored
@ -1,78 +1,78 @@
|
|||||||
# Copyright (c) Microsoft Corporation.
|
# Copyright (c) Microsoft Corporation.
|
||||||
# Licensed under the MIT License.
|
# Licensed under the MIT License.
|
||||||
#
|
#
|
||||||
# http://go.microsoft.com/fwlink/?LinkId=248926
|
# http://go.microsoft.com/fwlink/?LinkId=248926
|
||||||
|
|
||||||
name: "CodeQL"
|
name: "CodeQL"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: "main"
|
branches: "main"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '*.md'
|
- '*.md'
|
||||||
- LICENSE
|
- LICENSE
|
||||||
- '.azuredevops/**'
|
- '.azuredevops/**'
|
||||||
- '.nuget/*'
|
- '.nuget/*'
|
||||||
- build/*.cmd
|
- build/*.cmd
|
||||||
- build/*.json
|
- build/*.json
|
||||||
- build/*.props
|
- build/*.props
|
||||||
- build/*.ps1
|
- build/*.ps1
|
||||||
- build/*.targets
|
- build/*.targets
|
||||||
- build/*.xvd
|
- build/*.xvd
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: "main"
|
branches: "main"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '*.md'
|
- '*.md'
|
||||||
- LICENSE
|
- LICENSE
|
||||||
- '.azuredevops/**'
|
- '.azuredevops/**'
|
||||||
- '.nuget/*'
|
- '.nuget/*'
|
||||||
- build/*.cmd
|
- build/*.cmd
|
||||||
- build/*.json
|
- build/*.json
|
||||||
- build/*.props
|
- build/*.props
|
||||||
- build/*.ps1
|
- build/*.ps1
|
||||||
- build/*.targets
|
- build/*.targets
|
||||||
- build/*.xvd
|
- build/*.xvd
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '43 3 * * 3'
|
- cron: '43 3 * * 3'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
name: Analyze (C/C++)
|
name: Analyze (C/C++)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
timeout-minutes: 360
|
timeout-minutes: 360
|
||||||
permissions:
|
permissions:
|
||||||
actions: read # for github/codeql-action/init to get workflow details
|
actions: read # for github/codeql-action/init to get workflow details
|
||||||
contents: read # for actions/checkout to fetch code
|
contents: read # for actions/checkout to fetch code
|
||||||
security-events: write # for github/codeql-action/autobuild to send a status report
|
security-events: write # for github/codeql-action/autobuild to send a status report
|
||||||
packages: read
|
packages: read
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- name: 'Install Ninja'
|
- name: 'Install Ninja'
|
||||||
run: choco install ninja
|
run: choco install ninja
|
||||||
|
|
||||||
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
|
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
||||||
with:
|
with:
|
||||||
languages: c-cpp
|
languages: c-cpp
|
||||||
build-mode: manual
|
build-mode: manual
|
||||||
|
|
||||||
- name: 'Configure CMake'
|
- name: 'Configure CMake'
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: cmake --preset=x64-Debug
|
run: cmake --preset=x64-Debug
|
||||||
|
|
||||||
- name: 'Build'
|
- name: 'Build'
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: cmake --build out\build\x64-Debug
|
run: cmake --build out\build\x64-Debug
|
||||||
|
|
||||||
- name: Perform CodeQL Analysis
|
- name: Perform CodeQL Analysis
|
||||||
uses: github/codeql-action/analyze@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
|
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
||||||
with:
|
with:
|
||||||
category: "/language:c-cpp"
|
category: "/language:c-cpp"
|
||||||
|
176
.github/workflows/msvc.yml
vendored
176
.github/workflows/msvc.yml
vendored
@ -1,88 +1,88 @@
|
|||||||
# Copyright (c) Microsoft Corporation.
|
# Copyright (c) Microsoft Corporation.
|
||||||
# Licensed under the MIT License.
|
# Licensed under the MIT License.
|
||||||
#
|
#
|
||||||
# http://go.microsoft.com/fwlink/?LinkId=248926
|
# http://go.microsoft.com/fwlink/?LinkId=248926
|
||||||
|
|
||||||
name: Microsoft C++ Code Analysis
|
name: Microsoft C++ Code Analysis
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: "main"
|
branches: "main"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '*.md'
|
- '*.md'
|
||||||
- LICENSE
|
- LICENSE
|
||||||
- '.azuredevops/**'
|
- '.azuredevops/**'
|
||||||
- '.nuget/*'
|
- '.nuget/*'
|
||||||
- build/*.cmd
|
- build/*.cmd
|
||||||
- build/*.json
|
- build/*.json
|
||||||
- build/*.props
|
- build/*.props
|
||||||
- build/*.ps1
|
- build/*.ps1
|
||||||
- build/*.targets
|
- build/*.targets
|
||||||
- build/*.xvd
|
- build/*.xvd
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: "main"
|
branches: "main"
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '*.md'
|
- '*.md'
|
||||||
- LICENSE
|
- LICENSE
|
||||||
- '.azuredevops/**'
|
- '.azuredevops/**'
|
||||||
- '.nuget/*'
|
- '.nuget/*'
|
||||||
- build/*.cmd
|
- build/*.cmd
|
||||||
- build/*.json
|
- build/*.json
|
||||||
- build/*.props
|
- build/*.props
|
||||||
- build/*.ps1
|
- build/*.ps1
|
||||||
- build/*.targets
|
- build/*.targets
|
||||||
- build/*.xvd
|
- build/*.xvd
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '41 16 * * 1'
|
- cron: '41 16 * * 1'
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
analyze:
|
analyze:
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
security-events: write
|
security-events: write
|
||||||
actions: read
|
actions: read
|
||||||
name: Analyze
|
name: Analyze
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||||
|
|
||||||
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
||||||
with:
|
with:
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: cmake -B out -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
|
run: cmake -B out -DCMAKE_DISABLE_PRECOMPILE_HEADERS=ON
|
||||||
|
|
||||||
- name: 'Build Shaders (BC)'
|
- name: 'Build Shaders (BC)'
|
||||||
shell: cmd
|
shell: cmd
|
||||||
working-directory: ./DirectXTex/Shaders
|
working-directory: ./DirectXTex/Shaders
|
||||||
run: CompileShaders.cmd
|
run: CompileShaders.cmd
|
||||||
env:
|
env:
|
||||||
CompileShadersOutput: ${{ github.workspace }}/out/Shaders/Compiled
|
CompileShadersOutput: ${{ github.workspace }}/out/Shaders/Compiled
|
||||||
|
|
||||||
- name: 'Build Shaders (DDSVIEW)'
|
- name: 'Build Shaders (DDSVIEW)'
|
||||||
shell: cmd
|
shell: cmd
|
||||||
working-directory: ./DDSView
|
working-directory: ./DDSView
|
||||||
run: hlsl.cmd
|
run: hlsl.cmd
|
||||||
env:
|
env:
|
||||||
CompileShadersOutput: ${{ github.workspace }}/out/Shaders/Compiled
|
CompileShadersOutput: ${{ github.workspace }}/out/Shaders/Compiled
|
||||||
|
|
||||||
- name: Initialize MSVC Code Analysis
|
- name: Initialize MSVC Code Analysis
|
||||||
uses: microsoft/msvc-code-analysis-action@24c285ab36952c9e9182f4b78dfafbac38a7e5ee # v0.1.1
|
uses: microsoft/msvc-code-analysis-action@24c285ab36952c9e9182f4b78dfafbac38a7e5ee # v0.1.1
|
||||||
id: run-analysis
|
id: run-analysis
|
||||||
with:
|
with:
|
||||||
cmakeBuildDirectory: ./out
|
cmakeBuildDirectory: ./out
|
||||||
buildConfiguration: Debug
|
buildConfiguration: Debug
|
||||||
ruleset: NativeRecommendedRules.ruleset
|
ruleset: NativeRecommendedRules.ruleset
|
||||||
|
|
||||||
# Upload SARIF file to GitHub Code Scanning Alerts
|
# Upload SARIF file to GitHub Code Scanning Alerts
|
||||||
- name: Upload SARIF to GitHub
|
- name: Upload SARIF to GitHub
|
||||||
uses: github/codeql-action/upload-sarif@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16
|
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
|
||||||
with:
|
with:
|
||||||
sarif_file: ${{ steps.run-analysis.outputs.sarif }}
|
sarif_file: ${{ steps.run-analysis.outputs.sarif }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user