Skip to content

Bump bridgecrewio/checkov-action from 12.2702.0 to 12.2726.0 #23

Bump bridgecrewio/checkov-action from 12.2702.0 to 12.2726.0

Bump bridgecrewio/checkov-action from 12.2702.0 to 12.2726.0 #23

Workflow file for this run

---
name: lint
on:
push:
pull_request:
workflow_dispatch:
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 4
env:
ANSIBLE_CALLBACKS_ENABLED: profile_tasks
ANSIBLE_EXTRA_VARS: ""
ANSIBLE_ROLE: r_pufky.pihole
SUITE: default
steps:
- uses: actions/checkout@v4
with:
path: ${{ env.ANSIBLE_ROLE }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install --pre ansible-lint flake8 yamllint
which ansible
pip3 install ansible
pip3 show ansible
ansible --version
cd $GITHUB_WORKSPACE/$ANSIBLE_ROLE
[ -f molecule/${SUITE}/requirements.yml ] && ansible-galaxy install -r molecule/${SUITE}/requirements.yml
{ echo '[defaults]'; echo 'callbacks_enabled = profile_tasks, timer'; echo 'roles_path = ../:/home/runner/.ansible/roles'; echo 'ansible_python_interpreter: /usr/bin/python3'; } >> ansible.cfg
- name: Environment
run: |
pwd
env
find . -ls
- uses: codespell-project/actions-codespell@master
with:
ignore_words_file: ${{ env.ANSIBLE_ROLE }}/.codespellignore
skip: .git
path: ${{ env.ANSIBLE_ROLE }}
if: ${{ always() }}
- name: yamllint
run: |
cd $GITHUB_WORKSPACE/$ANSIBLE_ROLE && yamllint .
if: ${{ always() }}
- name: ansible-lint
run: |
cd $GITHUB_WORKSPACE/$ANSIBLE_ROLE && ansible-lint
if: ${{ always() }}
- name: Run Checkov action
id: checkov
uses: bridgecrewio/checkov-action@e5aec874aca04a0b30142382f0980e5145252333
with:
directory: ${{ env.ANSIBLE_ROLE }}
soft_fail: true
download_external_modules: true
github_pat: ${{ secrets.GH_PAT }}