Bump github/codeql-action from 4.31.9 to 4.31.10 #505
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: pull-request | |
| on: | |
| workflow_call: | |
| pull_request: | |
| permissions: read-all | |
| env: | |
| BUCKET_TF_STATE: ${{ secrets.BUCKET_TF_STATE}} | |
| jobs: | |
| pull-request: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # @v4 | |
| - name: Setup Terraform with specified version on the runner | |
| uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # @v3 | |
| with: | |
| terraform_version: 1.8.3 | |
| - name: Terraform format | |
| id: fmt | |
| run: terraform fmt -check | |
| working-directory: ./terraform/ | |
| - name: Run Checkov action | |
| id: checkov | |
| uses: bridgecrewio/checkov-action@8f61ce5b8a3afb4ca94d236b75201878ded6d2cd | |
| with: | |
| skip_check: CKV_DOCKER_2,CKV_DOCKER_3,CKV_SECRET_6,CKV2_ANSIBLE_3 | |
| quiet: true | |
| output_format: cli,sarif | |
| output_file_path: console,results.sarif | |
| download_external_modules: true | |
| if: github.event_name == 'pull_request' | |
| - name: Upload SARIF file | |
| uses: github/codeql-action/upload-sarif@cdefb33c0f6224e58673d9004f47f7cb3e328b89 # v3 | |
| if: github.event_name == 'pull_request' && (success() || failure()) | |
| with: | |
| sarif_file: results.sarif | |
| - name: Run ansible-lint | |
| uses: ansible/ansible-lint@a2bc8b8b13a80802215856c56823d85007d3baf5 # v25 | |
| with: | |
| args: "" | |
| setup_python: "true" | |
| working_directory: "./ansible/" | |
| requirements_file: "" | |
| - name: Python dependencies | |
| run: pip install --require-hashes -r requirements.txt | |
| - name: Run tests dev3 | |
| run: ansible-playbook tests.yaml --extra-vars 'env_file=dev.yaml expected_range=10.70.248.0/24 expected_default=10.70.248.1' | |
| working-directory: ./ansible/ | |
| - name: Run tests prod2 | |
| run: ansible-playbook tests.yaml --extra-vars 'env_file=wireguard_sn10.yaml expected_range=10.70.183.0/24,10.70.247.0/24 expected_default=10.70.247.1' | |
| working-directory: ./ansible/ | |
| - name: Run tests prod1 | |
| run: ansible-playbook tests.yaml --extra-vars 'env_file=wireguard_sn3.yaml expected_range=10.70.183.0/24,10.70.249.0/24,10.70.250.0/24 expected_default=10.70.250.1' | |
| working-directory: ./ansible/ | |
| - name: Run tests prod11 | |
| run: ansible-playbook tests.yaml --extra-vars "env_file=wireguard_sn11.yaml expected_range=10.70.183.0/24,10.70.246.0/24 expected_default=10.70.246.1" | |
| working-directory: ./ansible/ |