OPSEXP-2121 Add kics scan #1571
Workflow file for this run
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: Pre-commit | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
pre_commit: | |
name: Run pre-commit | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Ensure SHA pinned actions | |
uses: zgosalvez/github-actions-ensure-sha-pinned-actions@0901cf7b71c7ea6261ec69a3dc2bd3f9264f893e # v3.0.12 | |
with: | |
allowlist: | | |
Alfresco/alfresco-build-tools/ | |
- name: Setup helm docs | |
uses: Alfresco/alfresco-build-tools/.github/actions/setup-helm-docs@a288b9efdaa50413573b2e130896d906478b8e50 # v5.31.0 | |
- name: Install kubeconform helm plugin | |
run: | | |
helm plugin install https://github.com/jtyr/kubeconform-helm --version v0.1.12 | |
- name: Run pre-commit | |
uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@a288b9efdaa50413573b2e130896d906478b8e50 # v5.31.0 | |
with: | |
# disable auto-commit for PRs from forks | |
auto-commit: ${{ github.event_name != 'pull_request' || ! github.event.pull_request.head.repo.fork }} |