mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-26 22:30:07 +00:00
[StepSecurity] Apply security best practices (#508)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
This commit is contained in:
parent
3dc7ec1e82
commit
061355c9fd
6
.github/dependabot.yml
vendored
Normal file
6
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: github-actions
|
||||||
|
directory: /
|
||||||
|
schedule:
|
||||||
|
interval: daily
|
8
.github/workflows/codeql.yml
vendored
8
.github/workflows/codeql.yml
vendored
@ -39,15 +39,15 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: 'Install Ninja'
|
- name: 'Install Ninja'
|
||||||
run: choco install ninja
|
run: choco install ninja
|
||||||
|
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
||||||
|
|
||||||
- name: Initialize CodeQL
|
- name: Initialize CodeQL
|
||||||
uses: github/codeql-action/init@v3
|
uses: github/codeql-action/init@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
|
||||||
with:
|
with:
|
||||||
languages: c-cpp
|
languages: c-cpp
|
||||||
build-mode: manual
|
build-mode: manual
|
||||||
@ -61,6 +61,6 @@ jobs:
|
|||||||
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@v3
|
uses: github/codeql-action/analyze@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
|
||||||
with:
|
with:
|
||||||
category: "/language:c-cpp"
|
category: "/language:c-cpp"
|
||||||
|
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
@ -74,12 +74,12 @@ jobs:
|
|||||||
arch: amd64_arm64
|
arch: amd64_arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: 'Install Ninja'
|
- name: 'Install Ninja'
|
||||||
run: choco install ninja
|
run: choco install ninja
|
||||||
|
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
||||||
with:
|
with:
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
|
|
||||||
|
4
.github/workflows/msbuild.yml
vendored
4
.github/workflows/msbuild.yml
vendored
@ -32,10 +32,10 @@ jobs:
|
|||||||
platform: [x86, x64, ARM64]
|
platform: [x86, x64, ARM64]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: Add MSBuild to PATH
|
- name: Add MSBuild to PATH
|
||||||
uses: microsoft/setup-msbuild@v2
|
uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2.0.0
|
||||||
|
|
||||||
- if: matrix.platform != 'ARM64'
|
- if: matrix.platform != 'ARM64'
|
||||||
name: Build
|
name: Build
|
||||||
|
8
.github/workflows/msvc.yml
vendored
8
.github/workflows/msvc.yml
vendored
@ -37,9 +37,9 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
||||||
with:
|
with:
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ jobs:
|
|||||||
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@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
|
||||||
@ -71,6 +71,6 @@ jobs:
|
|||||||
|
|
||||||
# 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@v3
|
uses: github/codeql-action/upload-sarif@4dd16135b69a43b6c8efb853346f8437d92d3c93 # v3.26.6
|
||||||
with:
|
with:
|
||||||
sarif_file: ${{ steps.run-analysis.outputs.sarif }}
|
sarif_file: ${{ steps.run-analysis.outputs.sarif }}
|
||||||
|
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@ -78,10 +78,10 @@ jobs:
|
|||||||
arch: amd64_arm64
|
arch: amd64_arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: Clone test repository
|
- name: Clone test repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
with:
|
with:
|
||||||
repository: walbourn/directxtextest
|
repository: walbourn/directxtextest
|
||||||
path: Tests
|
path: Tests
|
||||||
@ -90,7 +90,7 @@ jobs:
|
|||||||
- name: 'Install Ninja'
|
- name: 'Install Ninja'
|
||||||
run: choco install ninja
|
run: choco install ninja
|
||||||
|
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
||||||
with:
|
with:
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ jobs:
|
|||||||
echo "::error Unknown architecture/build-type triplet mapping"
|
echo "::error Unknown architecture/build-type triplet mapping"
|
||||||
}
|
}
|
||||||
|
|
||||||
- uses: lukka/run-vcpkg@v11
|
- uses: lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11
|
||||||
with:
|
with:
|
||||||
runVcpkgInstall: true
|
runVcpkgInstall: true
|
||||||
vcpkgJsonGlob: '**/build/vcpkg.json'
|
vcpkgJsonGlob: '**/build/vcpkg.json'
|
||||||
|
6
.github/workflows/vcpkg.yml
vendored
6
.github/workflows/vcpkg.yml
vendored
@ -41,12 +41,12 @@ jobs:
|
|||||||
arch: amd64_arm64
|
arch: amd64_arm64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- name: 'Install Ninja'
|
- name: 'Install Ninja'
|
||||||
run: choco install ninja
|
run: choco install ninja
|
||||||
|
|
||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756 # v1.13.0
|
||||||
with:
|
with:
|
||||||
arch: ${{ matrix.arch }}
|
arch: ${{ matrix.arch }}
|
||||||
|
|
||||||
@ -77,7 +77,7 @@ jobs:
|
|||||||
echo "::error Unknown architecture/build-type triplet mapping"
|
echo "::error Unknown architecture/build-type triplet mapping"
|
||||||
}
|
}
|
||||||
|
|
||||||
- uses: lukka/run-vcpkg@v11
|
- uses: lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11
|
||||||
with:
|
with:
|
||||||
runVcpkgInstall: true
|
runVcpkgInstall: true
|
||||||
vcpkgJsonGlob: '**/build/vcpkg.json'
|
vcpkgJsonGlob: '**/build/vcpkg.json'
|
||||||
|
6
.github/workflows/wsl.yml
vendored
6
.github/workflows/wsl.yml
vendored
@ -33,11 +33,11 @@ jobs:
|
|||||||
gcc: [10, 11, 12]
|
gcc: [10, 11, 12]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
|
||||||
|
|
||||||
- uses: seanmiddleditch/gha-setup-ninja@v5
|
- uses: seanmiddleditch/gha-setup-ninja@96bed6edff20d1dd61ecff9b75cc519d516e6401 # v5
|
||||||
|
|
||||||
- uses: lukka/run-vcpkg@v11
|
- uses: lukka/run-vcpkg@7d259227a1fb6471a0253dd5ab7419835228f7d7 # v11
|
||||||
with:
|
with:
|
||||||
runVcpkgInstall: true
|
runVcpkgInstall: true
|
||||||
vcpkgJsonGlob: '**/build/vcpkg.json'
|
vcpkgJsonGlob: '**/build/vcpkg.json'
|
||||||
|
Loading…
Reference in New Issue
Block a user