Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
feat: add option to disable commit lint if required
Browse files Browse the repository at this point in the history
  • Loading branch information
erzz committed Jan 5, 2022
1 parent 3f67060 commit 595d2a8
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/source-protection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
description: "Path to a custom gitleaks config if required"
default: '.gitleaks.toml'
# <-------------- COMMIT LINT OPTIONS -------------->
commits-enable:
required: false
type: boolean
description: "Set to false if you want to disable the commit lint job"
default: true
commits-default-config:
required: false
type: boolean
Expand Down Expand Up @@ -64,14 +69,15 @@ jobs:
fetch-depth: ${{ inputs.creds-fetch-depth }}

- name: gitleaks
uses: zricethezav/gitleaks-action@master
uses: zricethezav/gitleaks-action@v1.6.0
with:
config-path: ${{ inputs.creds.gitleaks.config }}

# <---------- VALIDATE CONVENTIONAL COMMITS ------------>
commit-lint:
name: Commit Lint
runs-on: ubuntu-latest
if: ${{ inputs.commits-enable }}
steps:
- name: Checkout the code
uses: actions/checkout@v2
Expand Down

0 comments on commit 595d2a8

Please sign in to comment.