diff --git a/.github/dependency-review-config-foss.yaml b/.github/dependency-review-config-foss.yaml deleted file mode 100644 index 72565b5..0000000 --- a/.github/dependency-review-config-foss.yaml +++ /dev/null @@ -1,9 +0,0 @@ -# GitHub Dependency Review Configuration for Free and Open Source Software -# -# Dependency review helps you understand dependency changes and the security impact of these -# changes. -# -# Documentation: -# - https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review - -fail-on-severity: critical diff --git a/.github/workflows/git-commit-lint-local.yaml b/.github/workflows/git-commit-lint-local.yaml new file mode 100644 index 0000000..011e23c --- /dev/null +++ b/.github/workflows/git-commit-lint-local.yaml @@ -0,0 +1,22 @@ +# GitHub Actions Workflow for Git Commit Linter + +name: Git Commit Linter + +on: + push: + branches: + - develop + - master + pull_request: + types: + - opened + - reopened + - synchronize + +permissions: + contents: read + +jobs: + git-commit-lint: + name: Git Commit Linter + uses: cordada/github-actions-utils/.github/workflows/git-commit-lint.yaml@master diff --git a/.github/workflows/super-linter.yaml b/.github/workflows/super-linter.yaml index 05a2751..a15efe2 100644 --- a/.github/workflows/super-linter.yaml +++ b/.github/workflows/super-linter.yaml @@ -15,6 +15,11 @@ on: type: string required: true description: Default Branch of Git Repository + validate_all_codebase: + type: boolean + required: false + default: true + description: When `true`, validate all files; when `false`, only new or edited files. validate_editorconfig: type: boolean @@ -124,5 +129,5 @@ jobs: env: DEFAULT_BRANCH: ${{ inputs.default_git_branch }} LINTER_RULES_PATH: / - VALIDATE_ALL_CODEBASE: true + VALIDATE_ALL_CODEBASE: ${{ inputs.validate_all_codebase }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/commitlint.config.js b/commitlint.config.js new file mode 100644 index 0000000..d2f5ee1 --- /dev/null +++ b/commitlint.config.js @@ -0,0 +1,10 @@ +/* +Commitlint Configuration + +Commitlint is a Git commit message linter. + +- Web site: https://commitlint.js.org/ +- Documentation: https://github.com/conventional-changelog/commitlint#readme +*/ + +module.exports = { extends: ["@cordada/commitlint-config-cordada"] };