Skip to content

This action lets you automatically dismiss a large amount of code scanning alerts, based on one or more source files/folders

License

Notifications You must be signed in to change notification settings

pipeline-foundation/csabd

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

38 Commits
 
 
 
 
 
 

Repository files navigation

Code scanning alerts bulk dismissal

This action lets you automatically dismiss a large amount of code scanning alerts, based on one or more source files/folders

Table of Contents

Platforms

The action is written in PowerShell and is executed inside a PowerShell Core shell, therefore the action is cross-platform and works on all latest available GitHub Actions operation systems:

  • windows-latest
  • ubuntu-latest
  • macos-latest

Usage


name: CSABD

on: [workflow_dispatch]

jobs:
  test:
    runs-on: windows-latest
    steps:
      - name: Run CSABD tool
        uses: pipeline-foundation/csabd@main
        with:
            token: ${{ secrets.CSABD_TOKEN }}
            source: '/folder/'
            # for multiple entries use the following syntax with no spaces around commas
            # source: '/folder/,file.cs,/folder/file.cs,/main-folder/sub-folder/'

  • both parameters are REQUIRED

  • the secret's name used for token is only exemplary

  • be sure to use forward slash in the beginning and end of the folder name /name-of-folder/ to select a particular folder, because name-of-folder/ or name-of-folder would match some-name-of-folder/ and/or /name-of-folder-1 (same with a forward slash in the beginning of a file declaration /file.cs)

  • see action.yml for the full documentation for this action's inputs and outputs.

  • the action is intended to be used in an independent pipeline, with the workflow_dispatch event to start it manually, after reviewing the results of a code scanning pipeline and determining the source of the alerts