Skip to content

Add CI linting and security scan #3

Add CI linting and security scan

Add CI linting and security scan #3

Workflow file for this run

name: Lint and Security Check
on:
push:
pull_request:
branches:
- main
jobs:
shellcheck:
name: Lint Shell Scripts with ShellCheck
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
hadolint:
name: Lint Dockerfiles with Hadolint
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Run Hadolint with GitHub Action
uses: hadolint/hadolint-action@v3.1.0
with:
dockerfile_folder: .
recursive: true
checkov:
name: Run Checkov for Dockerfile Security Analysis
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Run Checkov with GitHub Action
uses: bridgecrewio/checkov-action@master
with:
directory: .
quiet: false