mirror of
https://github.com/semantica-agi/semantica.git
synced 2026-08-29 04:26:20 +00:00
Merge pull request #684 from semantica-agi/issue-681-knowledge-explorer-deploy-templates
Add Knowledge Explorer deployment templates
This commit is contained in:
@@ -32,7 +32,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
MSDO:
|
||||
# currently only windows latest is supported
|
||||
# currently only windows-latest is supported
|
||||
runs-on: windows-latest
|
||||
|
||||
steps:
|
||||
@@ -46,8 +46,43 @@ jobs:
|
||||
uses: microsoft/security-devops-action@v1.12.0
|
||||
id: msdo
|
||||
with:
|
||||
tools: checkov,eslint,templateanalyzer,terrascan
|
||||
# checkov is intentionally excluded from this MSDO step.
|
||||
# MSDO 0.215.0's guardian.cmd wrapper treats checkov's exit code 1
|
||||
# (emitted whenever any violation is found, even below the active severity
|
||||
# threshold) as a fatal "tool error" and breaks the build even when
|
||||
# "Active results: 0" and "Found no breaking results." The .checkov.yaml
|
||||
# soft-fail setting is never read by the guardian wrapper.
|
||||
# IaC security scanning continues below in this same MSDO job identity.
|
||||
# That preserves the existing GitHub code-scanning configuration while
|
||||
# avoiding the guardian.cmd/checkov exit-code bug in the MSDO wrapper.
|
||||
tools: eslint,templateanalyzer,terrascan
|
||||
- name: Upload results to Security tab
|
||||
uses: github/codeql-action/upload-sarif@v4
|
||||
with:
|
||||
sarif_file: ${{ steps.msdo.outputs.sarifFile }}
|
||||
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.12"
|
||||
|
||||
- name: Install Checkov
|
||||
run: python -m pip install checkov==3.3.1
|
||||
|
||||
- name: Run Checkov
|
||||
shell: pwsh
|
||||
env:
|
||||
PYTHONUTF8: "1"
|
||||
run: |
|
||||
New-Item -ItemType Directory -Force reports | Out-Null
|
||||
checkov --directory . --framework kubernetes helm dockerfile github_actions secrets bicep arm --soft-fail --output sarif --output-file-path reports/checkov.sarif
|
||||
if (-not (Test-Path reports/checkov.sarif)) {
|
||||
$sarif = Get-ChildItem -Path reports -Recurse -Filter *.sarif | Select-Object -First 1
|
||||
if ($null -eq $sarif) { throw "Checkov did not produce a SARIF file" }
|
||||
Copy-Item $sarif.FullName reports/checkov.sarif
|
||||
}
|
||||
|
||||
- name: Upload Checkov results to Security tab
|
||||
uses: github/codeql-action/upload-sarif@v4
|
||||
if: always()
|
||||
with:
|
||||
sarif_file: reports/checkov.sarif
|
||||
|
||||
@@ -18,6 +18,9 @@ on:
|
||||
- 'requirements-docs.txt'
|
||||
- '**/*.md'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
security-scan:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
Reference in New Issue
Block a user