mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-22 20:48:07 +00:00
Bumps the actions group with 2 updates: [github/codeql-action](https://github.com/github/codeql-action) and [docker/login-action](https://github.com/docker/login-action).
Updates `github/codeql-action` from 4.36.1 to 4.36.2
- [Release notes](https://github.com/github/codeql-action/releases)
- [Commits](https://github.com/github/codeql-action/compare/v4.36.1...v4.36.2)
Updates `docker/login-action` from 4.1.0 to 4.2.0
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](4907a6ddec...650006c6eb)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: 4.36.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: actions
- dependency-name: docker/login-action
dependency-version: 4.2.0
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
90 lines
2.6 KiB
YAML
90 lines
2.6 KiB
YAML
name: CodeQL macOS Critical Security
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 8 * * 1"
|
|
|
|
concurrency:
|
|
group: codeql-macos-critical-security-${{ github.workflow }}-${{ github.event_name == 'workflow_dispatch' && github.run_id || github.sha }}
|
|
cancel-in-progress: false
|
|
|
|
env:
|
|
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
|
|
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
macos:
|
|
name: Critical Security (macOS)
|
|
runs-on: blacksmith-6vcpu-macos-15
|
|
timeout-minutes: 45
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
|
with:
|
|
submodules: false
|
|
|
|
- name: Select Xcode
|
|
run: |
|
|
sudo xcode-select -s /Applications/Xcode_26.1.app
|
|
xcodebuild -version
|
|
swift --version
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
|
|
with:
|
|
languages: swift
|
|
build-mode: manual
|
|
config-file: ./.github/codeql/codeql-macos-critical-security.yml
|
|
|
|
- name: Build macOS for CodeQL
|
|
run: swift build --package-path apps/macos --product OpenClaw
|
|
|
|
- name: Analyze
|
|
id: analyze
|
|
uses: github/codeql-action/analyze@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
|
|
with:
|
|
output: sarif-results
|
|
upload: failure-only
|
|
category: "/codeql-critical-security/macos"
|
|
|
|
- name: Remove dependency build results
|
|
env:
|
|
SARIF_OUTPUT: sarif-results
|
|
run: |
|
|
set -euo pipefail
|
|
shopt -s nullglob
|
|
|
|
if [ ! -d "$SARIF_OUTPUT" ]; then
|
|
echo "SARIF output directory not found: $SARIF_OUTPUT" >&2
|
|
exit 1
|
|
fi
|
|
|
|
mkdir -p sarif-results-filtered
|
|
|
|
files=("$SARIF_OUTPUT"/*.sarif)
|
|
if [ "${#files[@]}" -eq 0 ]; then
|
|
echo "No SARIF files found in $SARIF_OUTPUT" >&2
|
|
exit 1
|
|
fi
|
|
|
|
for file in "${files[@]}"; do
|
|
jq '
|
|
def in_dependency_build:
|
|
((.locations // []) | length > 0)
|
|
and all(.locations[]; (.physicalLocation.artifactLocation.uri? // "") | test("^apps/macos/\\.build/"));
|
|
|
|
.runs |= map(.results = ((.results // []) | map(select(in_dependency_build | not))))
|
|
' "$file" > "sarif-results-filtered/$(basename "$file")"
|
|
done
|
|
|
|
- name: Upload filtered SARIF
|
|
uses: github/codeql-action/upload-sarif@8aad20d150bbac5944a9f9d289da16a4b0d87c1e # v4
|
|
with:
|
|
sarif_file: sarif-results-filtered
|
|
category: "/codeql-critical-security/macos"
|