breaking: enhance agent creation and skill management #7
Workflow file for this run
This file contains hidden or 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: 🛂 terraform-pre-commit | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| workflow_call: | |
| inputs: | |
| pre-commit-image: | |
| description: "Docker image for pre-commit-terraform" | |
| required: false | |
| type: string | |
| default: "ghcr.io/antonbabenko/pre-commit-terraform:v1.105.0@sha256:4ef4b8323b27fc263535ad88c9d2f20488fcb3b520258e5e7f0553ed5f6692b5" # pre-commit-terraform v1.105.0 | |
| pre-commit-config: | |
| description: "Path to the pre-commit config file" | |
| required: false | |
| type: string | |
| default: ".pre-commit-config.yaml" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| env: | |
| PRE_COMMIT_IMAGE: ${{ inputs.pre-commit-image || 'ghcr.io/antonbabenko/pre-commit-terraform:v1.105.0@sha256:4ef4b8323b27fc263535ad88c9d2f20488fcb3b520258e5e7f0553ed5f6692b5' }} # pre-commit-terraform v1.105.0 | |
| PRE_COMMIT_CONFIG: ${{ inputs.pre-commit-config || '.pre-commit-config.yaml' }} | |
| concurrency: | |
| group: pre-commit-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| pre-commit: | |
| name: pre-commit | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 30 | |
| env: | |
| # Local-only validation: Terraform must not reach remote backends. | |
| TF_INPUT: "0" | |
| TF_IN_AUTOMATION: "1" | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 https://github.com/actions/checkout/releases/tag/v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Pull pre-commit container image | |
| run: | | |
| docker pull "${PRE_COMMIT_IMAGE}" | |
| - name: Show bundled tool versions | |
| run: | | |
| docker run --rm --entrypoint cat "${PRE_COMMIT_IMAGE}" /usr/bin/tools_versions_info | |
| - name: Run pre-commit in container | |
| run: | | |
| docker run --rm \ | |
| -e USERID="$(id -u):$(id -g)" \ | |
| -e TF_INPUT \ | |
| -e TF_IN_AUTOMATION \ | |
| -v "${PWD}:/lint" \ | |
| -w /lint \ | |
| "${PRE_COMMIT_IMAGE}" run \ | |
| --all-files \ | |
| --config "${PRE_COMMIT_CONFIG}" \ | |
| --show-diff-on-failure \ | |
| --color always |