This action lets you automatically dismiss a large amount of code scanning alerts, based on one or more source files/folders
Table of Contents
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
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, becausename-of-folder/
orname-of-folder
would matchsome-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