diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4ce6454..7f124aa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,3 +23,8 @@ repos: additional_dependencies: - "ansible-core>=2.13" - "yamllint>=1.29,<2.0" + + - repo: https://github.com/gitleaks/gitleaks + rev: v8.16.1 + hooks: + - id: gitleaks diff --git a/Dockerfile b/Dockerfile index 1873722..d295263 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,9 @@ ENV HOME=/home/runner COPY requirements.txt requirements.txt RUN pip3 install -r requirements.txt +## install golang for pre-commit +RUN microdnf install -y go + ## kubectl RUN \ microdnf install -y which && \ diff --git a/README.md b/README.md index 153d037..1a90892 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,6 @@ To get started, simply click the button below... [![Contribute](https://www.eclipse.org/che/contribute.svg)](https://workspaces.openshift.com/f?url=https://github.com/devspaces-samples/ansible-devspaces-demo) - # Ansible Development on OpenShift Dev Spaces This repository provides a development environment for Ansible playbook creation, testing with Molecule, and ansible-lint checks using OpenShift Dev Spaces. diff --git a/requirements.txt b/requirements.txt index 528a000..7ca710b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,3 +2,4 @@ kubernetes==26.1.0 ansible-navigator==3.5.0 pre-commit==3.6.0 ansible-creator +