NathanBurkett / prev-action-sqlcheck

GitHub Actions that automatically identifies anti-patterns in SQL queries using sqlcheck when PR is requested

Home Page:https://github.com/marketplace/actions/sqlcheck-action

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

action-sqlcheck

GitHub Actions that automatically identifies anti-patterns in SQL queries using sqlcheck when PR is requested and comment on the PR if risks are found in the queries

Usage

Supports pull_request event type.

Inputs

Parameter Required Default Value Description
post-comment false true Post comment to PR if it's true
token true "" GitHub Token in order to add comment to PR
risk-level false 3 Set of SQL anti-patterns to check: 1,2, or 3
- 1 (all anti-patterns, default)
- 2 (only medium and high risk anti-patterns)
- 3 (only high risk anti-patterns)
verbose false false Add verbose warnings to SQLCheck analysis result
postfixes false "sql" List of file postfix to match ( separator: comma )

Sample Workflow

examples/workflow.yml

name: sqlcheck workflow
on: pull_request

jobs:
  sqlcheck:
    name: sqlcheck job 
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - uses: yokawasa/action-sqlcheck@v1.0.0
      with:
        post-comment: true
        risk-level: 3
        verbose: false
        token: ${{ secrets.GITHUB_TOKEN }}

About

GitHub Actions that automatically identifies anti-patterns in SQL queries using sqlcheck when PR is requested

https://github.com/marketplace/actions/sqlcheck-action

License:Creative Commons Zero v1.0 Universal


Languages

Language:Shell 77.7%Language:Dockerfile 22.3%