feat(workflows): init terraform

This commit is contained in:
2023-12-09 10:10:51 +02:00
parent 4e4e783476
commit d1d0a87788

View File

@@ -1,6 +1,10 @@
name: checks-trivy name: checks-trivy
on: on:
workflow_call: workflow_call:
ssh-private-key:
required: true
ssh-known-hosts:
required: true
jobs: jobs:
checks-trivy: checks-trivy:
@@ -17,9 +21,9 @@ jobs:
- name: Setup SSH key - name: Setup SSH key
uses: benoitchantre/setup-ssh-authentication-action@1.0.1 uses: benoitchantre/setup-ssh-authentication-action@1.0.1
with: with:
private-key: ${{ secrets.SSH_PRIVATE_KEY }} private-key: ${{ secrets.ssh-private-key }}
private-key-name: id_ed25519 private-key-name: id_ed25519
known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }} known-hosts: ${{ secrets.ssh-known-hosts }}
- name: Run terraform init - name: Run terraform init
shell: bash shell: bash
run: terraform init run: terraform init