fix(lambda): Update all dependencies, cleanup lock file and force non… #2326
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: "Packer checks" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths: | |
- "images/**" | |
- ".github/workflows/packer-build.yml" | |
- "module/runners/templates/**" | |
permissions: | |
contents: read | |
env: | |
AWS_REGION: eu-west-1 | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
verify_packer: | |
name: Verify packer | |
runs-on: ubuntu-latest | |
container: | |
image: index.docker.io/hashicorp/packer@sha256:12c441b8a3994e7df9f0e2692d9298f14c387e70bcc06139420977dbf80a137b # 1.11.2 | |
strategy: | |
matrix: | |
image: ["linux-al2023", "windows-core-2019", "windows-core-2022", "ubuntu-focal", "ubuntu-jammy", "ubuntu-jammy-arm64"] | |
defaults: | |
run: | |
working-directory: images/${{ matrix.image }} | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1 | |
with: | |
egress-policy: audit | |
- name: "Checkout" | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
persist-credentials: false | |
- name: packer init | |
run: packer init . | |
- name: check packer formatting | |
run: packer fmt -recursive -check=true . | |
- name: packer validate | |
run: packer validate -evaluate-datasources . |