Skip to content

chore(deps): update configuration management dependencies #374

chore(deps): update configuration management dependencies

chore(deps): update configuration management dependencies #374

name: Static analysis
on:
push:
pull_request:
types:
- opened
- synchronize
jobs:
opentofu_lint:
name: OpenTofu lint
runs-on: ubuntu-24.04
# Exclude in-repo PRs from running this job
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
steps:
- name: πŸ“₯ Checkout source
uses: actions/checkout@v7
- name: 🧰 Install Nix
uses: cachix/install-nix-action@v31
- name: βš™οΈ Initialize OpenTofu
run: nix-shell --run 'tofu init'
- name: πŸ” OpenTofu files format check
run: nix-shell --run 'tofu fmt -check'
- name: πŸ” Validate OpenTofu files
run: nix-shell --run 'tofu validate'
ansible_lint:
name: Ansible lint
runs-on: ubuntu-24.04
# Exclude in-repo PRs from running this job
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.fork
steps:
- name: πŸ“₯ Checkout source
uses: actions/checkout@v7
- name: 🧰 Install Nix
uses: cachix/install-nix-action@v31
- name: βš™οΈ Create Ansible Vault password file
env:
ANSIBLE_VAULT_PASSWORD: ${{ secrets.ANSIBLE_VAULT_PASSWORD }}
run: |
mkdir secrets
echo "$ANSIBLE_VAULT_PASSWORD" > secrets/vault_password
- name: πŸ” Run ansible-lint
run: nix-shell --run 'ansible-lint .'