Added lint job status #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint Code | |
on: [push, workflow_dispatch] | |
jobs: | |
lint: | |
name: Lint Job | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: read | |
statuses: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
# Full git history is needed to get a proper list of changed files within `super-linter` | |
fetch-depth: 0 | |
- name: Lint Code Base | |
uses: super-linter/super-linter@v7 | |
env: | |
VALIDATE_BASH: true | |
BASH_SEVERITY: style | |
BASH_FILE_NAME: .shellcheckrc | |
# Adding this here for now becaue the config file does not work | |
# SHELLCHECK_OPTS: '--exclude SC1090,SC1091,SC2086,SC2155,SC2166' | |
VALIDATE_BASH_EXEC: true | |
VALIDATE_GITLEAKS: true | |
VALIDATE_MARKDOWN: true | |
VALIDATE_NATURAL_LANGUAGE: true | |
CREATE_LOG_FILE: true | |
SUPPRESS_POSSUM: false | |
VALIDATE_ALL_CODEBASE: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |