Skip to content

accuknox/sast-scan-opengrep-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Accuknox SAST

This performs an SAST scan on your repository and uploads the results to AccuKnox's CSPM panel. It helps in identifying security issues and integrates seamlessly with GitHub Actions workflows.

Features

  • Runs Opengrep to analyze the repository.
  • Uploads scan results to AccuKnox CSPM panel.
  • Supports artifact upload to GitHub.
  • Allows soft failure for non-blocking scans.

Inputs

Name Description Required Default
pipeline_id GitHub Run ID Yes ${{ github.run_id }}
job_url GitHub Job URL Yes ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
accuknox_endpoint CSPM panel URL Yes cspm.demo.accuknox.com
accuknox_token AccuKnox API Token Yes
accuknox_label Label for scan results Yes
soft_fail Continue even if scan fails No false

Usage Example

name: Accuknox SAST

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  accuknox-cicd:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout code
        uses: actions/checkout@v3

      - name: "Run Accuknox SAST: Opengrep"
        uses: accuknox/[email protected]
        with:
          accuknox_endpoint: ${{ secrets.ACCUKNOX_ENDPOINT }}
          accuknox_token: ${{ secrets.ACCUKNOX_TOKEN }}
          accuknox_label: ${{ secrets.ACCUKNOX_LABEL }}
          soft_fail: true

About

Perform an Opengrep SAST scan on your repository and upload the results to AccuKnox.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •