Skip to content

dgellow/action-dscanner

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

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

action-dscanner

Test reviewdog depup release GitHub release (latest SemVer) action-bumpr supported

This Github Action runs D-Scanner on your project and report its result in your Pull Requests via reviewdog.

D-Scanner is run via a call to dub lint, thus a DUB project is expected.

Input

inputs:
  github_token:
    description: 'GITHUB_TOKEN'
    default: '${{ github.token }}'
  # reviewdog flags
  level:
    description: 'Report level for reviewdog [info,warning,error]'
    default: 'error'
  reporter:
    description: 'Reporter of reviewdog command [github-pr-check,github-check,github-pr-review].'
    default: 'github-pr-check'
  # D-Scanner flags
  path:
    description: 'Root directory where D-Scanner should be run from'
    default: ''

Usage

name: reviewdog
on: [pull_request]
jobs:
  linter_name:
    name: runner / dscanner
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: dgellow/action-dscanner@v1
        with:
          github_token: ${{ secrets.github_token }}

          # reviewdog config
          reporter: github-pr-review
          level: warning

          # D-Scanner config
          path: 'path/to/my/project'