mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
* security: fix 9 Dependabot/CodeQL alerts — DOMPurify, vite, uuid, workflow permissions - Add explicit permissions block to defender-for-devops.yml (CodeQL #25) - Upgrade vite 5.4.x → 6.4.3; bundled esbuild 0.21.5 → 0.25.12 (Dependabot #2, #7) - Force dompurify ^3.4.0 via npm overrides; resolves 6 DOMPurify XSS alerts (#4–#6, #8–#11) - Force uuid ^13.0.1 via npm overrides; fixes buffer bounds check (Dependabot #12) * fix(ci): exclude bandit from MSDO scan on windows-latest bandit_runner.exe builds a per-file command line; on a large Python repo the total command string exceeds the Windows CreateProcess limit and the process fails to start (Win32 ERROR_FILENAME_EXCED_RANGE 206). Exclude bandit via the tools param and retain checkov, eslint, templateanalyzer, terrascan, and binskim. * fix(ci): drop binskim (no binaries), enable Neptune audit logging - Remove binskim from MSDO tools: repo has no compiled binaries so BinSkim raises AnalyzeArgumentNoValuesException and breaks the run - Add EnableCloudwatchLogsExports: [audit] to NeptuneCluster to fix Checkov CKV_AWS_101 (the one error-level result breaking the build)
54 lines
1.8 KiB
YAML
54 lines
1.8 KiB
YAML
# This workflow uses actions that are not certified by GitHub.
|
|
# They are provided by a third-party and are governed by
|
|
# separate terms of service, privacy policy, and support
|
|
# documentation.
|
|
#
|
|
# Microsoft Security DevOps (MSDO) is a command line application which integrates static analysis tools into the development cycle.
|
|
# MSDO installs, configures and runs the latest versions of static analysis tools
|
|
# (including, but not limited to, SDL/security and compliance tools).
|
|
#
|
|
# The Microsoft Security DevOps action is currently in beta and runs on the windows-latest queue,
|
|
# as well as Windows self hosted agents. ubuntu-latest support coming soon.
|
|
#
|
|
# For more information about the action , check out https://github.com/microsoft/security-devops-action
|
|
#
|
|
# Please note this workflow do not integrate your GitHub Org with Microsoft Defender For DevOps. You have to create an integration
|
|
# and provide permission before this can report data back to azure.
|
|
# Read the official documentation here : https://learn.microsoft.com/en-us/azure/defender-for-cloud/quickstart-onboard-github
|
|
|
|
name: "Microsoft Defender For Devops"
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
schedule:
|
|
- cron: '43 17 * * 6'
|
|
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
MSDO:
|
|
# currently only windows latest is supported
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: |
|
|
5.0.x
|
|
6.0.x
|
|
- name: Run Microsoft Security DevOps
|
|
uses: microsoft/security-devops-action@v1.6.0
|
|
id: msdo
|
|
with:
|
|
tools: checkov,eslint,templateanalyzer,terrascan
|
|
- name: Upload results to Security tab
|
|
uses: github/codeql-action/upload-sarif@v3
|
|
with:
|
|
sarif_file: ${{ steps.msdo.outputs.sarifFile }}
|