Skip to content

Updating the Security Baseline checks for SSH and adding automatic re… #131

Updating the Security Baseline checks for SSH and adding automatic re…

Updating the Security Baseline checks for SSH and adding automatic re… #131

Workflow file for this run

name: E2E
on:
push:
branches:
- main
paths:
- src/**
workflow_dispatch:
jobs:
hub:
name: Create IoT Hub
runs-on: ubuntu-latest
outputs:
name: ${{ steps.terraform.outputs.iothub_name }}
connection_string: ${{ steps.terraform.outputs.connection_string }}
resource_group_name: ${{ steps.terraform.outputs.resource_group_name }}
steps:
- uses: actions/checkout@v3
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: latest
terraform_wrapper: false
- name: Provision Iot Hub
id: terraform
working-directory: devops/e2e/terraform/iothub
env:
TF_VAR_client_id: ${{ secrets.CLIENT_ID }}

Check failure on line 31 in .github/workflows/e2e.yml

View workflow run for this annotation

GitHub Actions / E2E

Invalid workflow file

The workflow is not valid. Azure/azure-osconfig/.github/workflows/e2e-run.yml@cec33892d56eea62b26707af0a3b9a6c75aba15f (Line: 31, Col: 11): Input target is required, but not provided while calling. Azure/azure-osconfig/.github/workflows/e2e-run.yml@cec33892d56eea62b26707af0a3b9a6c75aba15f (Line: 33, Col: 11): Invalid input, os is not defined in the referenced workflow.
TF_VAR_client_secret: ${{ secrets.CLIENT_SECRET }}
TF_VAR_subscription_id: ${{ secrets.SUBSCRIPTION_ID }}
TF_VAR_tenant_id: ${{ secrets.TENANT_ID }}
TF_VAR_name: e2e-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
run: |
terraform init
terraform apply -auto-approve
echo iothub_name=$(terraform output -raw iothub_name) >> $GITHUB_OUTPUT
echo connection_string=$(terraform output -raw connection_string) >> $GITHUB_OUTPUT
test:
name: Test
uses: ./.github/workflows/e2e-run.yml
needs: hub
strategy:
fail-fast: false
matrix:
target: [ubuntu-18.04, ubuntu-20.04, debian-10, debian-11]
arch: [amd64]
secrets:
client_id: ${{ secrets.CLIENT_ID }}
client_secret: ${{ secrets.CLIENT_SECRET }}
tenant_id: ${{ secrets.TENANT_ID }}
iothub: ${{ needs.hub.outputs.name }}
iothub_connection_string: ${{ needs.hub.outputs.connection_string }}
with:
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
cleanup:
name: Delete IoT Hub
runs-on: ubuntu-latest
needs: [hub, test]
if: always()
steps:
- name: Delete IoT Hub
run: |
az login --service-principal \
--username ${{ secrets.CLIENT_ID }} \
--password ${{ secrets.CLIENT_SECRET }} \
--tenant ${{ secrets.TENANT_ID }}
az extension add --name azure-iot
az iot hub delete \
--name ${{ needs.hub.outputs.name }} \
--resource-group e2e