mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
Bumps the github-actions group in /.github/workflows with 2 updates: [softprops/action-gh-release](https://github.com/softprops/action-gh-release) and [github/codeql-action](https://github.com/github/codeql-action). Updates `softprops/action-gh-release` from 2.3.4 to 2.4.1 - [Release notes](https://github.com/softprops/action-gh-release/releases) - [Changelog](https://github.com/softprops/action-gh-release/blob/master/CHANGELOG.md) - [Commits](https://github.com/softprops/action-gh-release/compare/v2.3.4...v2.4.1) Updates `github/codeql-action` from 3 to 4 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/v3...v4) --- updated-dependencies: - dependency-name: softprops/action-gh-release dependency-version: 2.4.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: github/codeql-action dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
name: "CodeQL MaaCore and MaaWpfGui Analysis"
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ["dev"]
|
|
paths:
|
|
- "3rdparty/include/**"
|
|
- "include/**"
|
|
- "src/**"
|
|
- "cmake/**"
|
|
- "CMakeLists.txt"
|
|
- ".github/workflows/codeql-core.yml"
|
|
- "!**/*.md"
|
|
- "!**/*.xaml"
|
|
schedule:
|
|
- cron: "45 11 * * *" # Runs daily at 11:45 UTC
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
actions: write
|
|
contents: read
|
|
packages: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
analyze-manual:
|
|
name: Analyze MaaCore and MaaWpfGui
|
|
runs-on: windows-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v5
|
|
with:
|
|
show-progress: false
|
|
|
|
- name: Setup CodeQL
|
|
uses: github/codeql-action/init@v4
|
|
with:
|
|
languages: c-cpp,csharp
|
|
build-mode: manual
|
|
|
|
- name: Run CodeQL
|
|
uses: github/codeql-action/analyze@v4
|
|
with:
|
|
category: "/language:multi-manual"
|
|
|
|
- name: Delete old caches
|
|
shell: pwsh
|
|
run: |
|
|
$oldCaches = gh cache list --key codeql --order asc --json key | ConvertFrom-Json | Select-Object -SkipLast 1
|
|
foreach ($cache in $oldCaches) {
|
|
if ($cache.key) {
|
|
Write-Host "Deleting cache: $($cache.key)"
|
|
gh cache delete $cache.key
|
|
}
|
|
}
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|