2023-08-23 10:39:49 -04:00
|
|
|
name: E2E Attestationconfig API Test
|
|
|
|
description: "Test the attestationconfig CLI is functional."
|
|
|
|
|
|
|
|
inputs:
|
2023-11-14 07:25:52 -05:00
|
|
|
csp:
|
|
|
|
description: "Cloud provider to run tests against"
|
|
|
|
default: "azure"
|
2023-08-23 10:39:49 -04:00
|
|
|
buildBuddyApiKey:
|
|
|
|
description: "BuildBuddy API key for caching Bazel artifacts"
|
|
|
|
required: true
|
|
|
|
cosignPrivateKey:
|
|
|
|
description: "Cosign private key"
|
|
|
|
required: true
|
|
|
|
cosignPassword:
|
|
|
|
description: "Password for Cosign private key"
|
|
|
|
required: true
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Setup bazel
|
2023-10-04 07:55:38 -04:00
|
|
|
uses: ./.github/actions/setup_bazel_nix
|
2023-08-23 10:39:49 -04:00
|
|
|
with:
|
|
|
|
useCache: "true"
|
|
|
|
buildBuddyApiKey: ${{ inputs.buildBuddyApiKey }}
|
|
|
|
|
|
|
|
- name: Login to AWS
|
2024-02-21 09:29:06 -05:00
|
|
|
uses: aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502 # v4.0.2
|
2023-08-23 10:39:49 -04:00
|
|
|
with:
|
|
|
|
role-to-assume: arn:aws:iam::795746500882:role/GithubTestResourceAPI
|
|
|
|
aws-region: eu-west-1
|
|
|
|
|
|
|
|
- name: Run attestationconfig API E2E
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
COSIGN_PRIVATE_KEY: ${{ inputs.cosignPrivateKey }}
|
|
|
|
COSIGN_PASSWORD: ${{ inputs.cosignPassword }}
|
|
|
|
run: |
|
2023-11-14 07:25:52 -05:00
|
|
|
bazel run //internal/api/attestationconfigapi/cli:cli_e2e_test -- ${{ inputs.csp }}
|