Skip to content

Bump github/codeql-action from 3.27.5 to 3.28.0 #6158

Bump github/codeql-action from 3.27.5 to 3.28.0

Bump github/codeql-action from 3.27.5 to 3.28.0 #6158

name: Ansible Lint
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@0080882f6c36860b6ba35c610c98ce87d4e2f26f # v2.10.2
with:
egress-policy: audit
- name: Checkout the code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
- name: Setup Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b #v5.3.0
with:
python-version: '3.x'
- name: Install Ansible and Ansible-Lint
run: |
python -m pip install --upgrade pip
pip install ansible-core ansible-lint==24.7.0 jmespath netaddr
- name: Install Ansible Collections
run: |
ansible-galaxy collection install ansible.windows --force
ansible-galaxy collection install ansible.posix --force
ansible-galaxy collection install ansible.utils --force
ansible-galaxy collection install ansible.netcommon:5.1.2 --force
ansible-galaxy collection install community.windows --force
ansible-galaxy collection install community.general --force
ansible-galaxy collection install microsoft.ad --force
- name: Run ansible-lint
run: |
ansible-lint deploy/ansible -c .ansible-lint