diff --git a/.github/workflows/code-scanning.yml b/.github/workflows/code-scanning.yml index d0664bf..646ac92 100644 --- a/.github/workflows/code-scanning.yml +++ b/.github/workflows/code-scanning.yml @@ -1,4 +1,4 @@ -name: "Code Scanning" +name: Code Scanning on: schedule: diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..4339be5 --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,24 @@ +name: Lint Code + +on: + pull_request: + branches: + - master + +jobs: + lint: + name: Lint code + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Lint code base + uses: github/super-linter@v3 + env: + VALIDATE_DOCKERFILE_HADOLINT: true + VALIDATE_BASH: true + DEFAULT_BRANCH: master + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.shellcheckrc b/.shellcheckrc index 4444152..ed22ec8 100644 --- a/.shellcheckrc +++ b/.shellcheckrc @@ -1,6 +1,9 @@ # Check shellcheck wiki at: # https://github.com/koalaman/shellcheck/wiki/SCXXXX +# Allow following non-constant source +disable=SC1090 + # Redirections are performed by the current shell before sudo is started. disable=SC2024