How github/ossar-action works
OSSAR is a GitHub Action that runs Microsoft Security DevOps to analyze a repository and produce a SARIF file for upload. The workflow starts when a GitHub Actions workflow invokes the action; its entry point selects configuration and policy arguments, then calls the toolkit client. The README documents the CLI’s broader analysis capabilities, which are shown as separate stages. Those internals are not implemented in the sampled repository, so their relationships are based on README statements rather than inspected source.
Main entry points: action.ts Action entry · github.gdnpolicy Local policy
Components 10
Action runtime
- Action entry
src/action.ts - Local policy
policy/github.gdnpolicy
Security analysis
- MSDO toolkit
- Security DevOps CLI
- Tool installation
- Tool configuration
- Static analysis
- SARIF output
Other components
- GitHub workflow
- SARIF upload action
Connections 9
- GitHub workflow → Action entry: invokes
README.md - Action entry → Local policy: selects path
src/action.ts - Action entry → MSDO toolkit: calls
src/action.ts - MSDO toolkit → Security DevOps CLI: runs
README.md - Security DevOps CLI → Tool installation: installs tools
README.md - Security DevOps CLI → Tool configuration: configures tools
README.md - Security DevOps CLI → Static analysis: runs analysis
README.md - Security DevOps CLI → SARIF output: normalizes results
README.md - SARIF output → SARIF upload action: uploaded by
README.md