From 2364a1b5510ff1bbb24f039e438baabeb39fc1cc Mon Sep 17 00:00:00 2001 From: Jose Tomas Robles Hahn Date: Thu, 26 Jan 2023 20:50:30 -0300 Subject: [PATCH 1/4] chore: Remove GitHub Dependency Review configuration for FOSS This reverts commit 26ad53417afd9b444988551a6acc86807e196dc8. The shared configuration file will not be used after all. Ref: https://cordada.aha.io/features/TECHINFRA-163 --- .github/dependency-review-config-foss.yaml | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 .github/dependency-review-config-foss.yaml 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 From 9397a595a68689b3038de7a5c3bf5fa4e2e93279 Mon Sep 17 00:00:00 2001 From: Jose Tomas Robles Hahn Date: Tue, 7 Feb 2023 14:27:54 -0300 Subject: [PATCH 2/4] chore: Add option `validate_all_codebase` to Super-Linter --- .github/workflows/super-linter.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 }} From fd6447d11fc72dea8880e870ee4033f85a98bfd8 Mon Sep 17 00:00:00 2001 From: Jose Tomas Robles Hahn Date: Tue, 7 Feb 2023 14:38:35 -0300 Subject: [PATCH 3/4] chore: Add Commitlint configuration --- commitlint.config.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 commitlint.config.js 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"] }; From ec5f43219ea11a2932a2884b13a755c7876014c1 Mon Sep 17 00:00:00 2001 From: Jose Tomas Robles Hahn Date: Tue, 7 Feb 2023 14:44:52 -0300 Subject: [PATCH 4/4] chore: Enable Git Commit Linter for pull requests in this VCS repository --- .github/workflows/git-commit-lint-local.yaml | 22 ++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/git-commit-lint-local.yaml 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