Skip to content

feat: updated mongodb uri format #21

feat: updated mongodb uri format

feat: updated mongodb uri format #21

Workflow file for this run

name: SPHA
on:
pull_request:
branches: ["main"]
merge_group:
types: [checks_requested]
schedule:
- cron: "12 12 * * 1"
push:
branches: ["main"]
workflow_dispatch:
permissions:
# Required to upload SARIF file to CodeQL. See: https://github.com/github/codeql-action/issues/2117
actions: read
# Require writing security events to upload SARIF file to security tab
security-events: write
# Only need to read contents
contents: read
jobs:
scan-pr:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Run osv scanner
uses: google/osv-scanner-action/[email protected]
with:
scan-args: |-
--format=json
--output osv-results.json
--recursive
--skip-git=true
./
continue-on-error: true
- name: Upload Results
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
with:
name: osv-results
path: osv-results.json
spha:
needs: scan-pr
runs-on: ubuntu-latest
steps:
- name: Download scanner results
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16
with:
name: osv-results
- name: Display structure of downloaded files
run: ls -R
- name: Run SPHA Transform
uses: fraunhofer-iem/spha-action/[email protected]
with:
tool: osv
inputFile: osv-results.json
output: osv-raw-value.json
- name: Run SPHA Calculate
uses: fraunhofer-iem/spha-action/[email protected]
with:
source: $GITHUB_WORKSPACE
output: kpis.json
- name: Upload Results
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882
with:
name: SPHA-KPIs
path: kpis.json