2022-11-25 06:08:24 -05:00
|
|
|
name: Generate and Upload Measurements
|
2022-09-13 10:01:47 -04:00
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
2022-10-21 04:16:44 -04:00
|
|
|
osImage:
|
2022-11-23 03:41:42 -05:00
|
|
|
description: "Full name of OS image (CSP independent image version UID)."
|
2022-09-13 10:01:47 -04:00
|
|
|
type: string
|
|
|
|
required: true
|
|
|
|
isDebugImage:
|
2022-10-21 04:16:44 -04:00
|
|
|
description: "Is OS image a debug image?"
|
2022-09-13 10:01:47 -04:00
|
|
|
type: boolean
|
|
|
|
required: true
|
2022-11-25 06:08:24 -05:00
|
|
|
signMeasurements:
|
|
|
|
description: "Sign and upload the measurements?"
|
|
|
|
type: boolean
|
|
|
|
required: true
|
2023-01-06 03:39:49 -05:00
|
|
|
isRelease:
|
|
|
|
description: "Is this a release?"
|
|
|
|
type: boolean
|
|
|
|
default: false
|
|
|
|
required: false
|
2023-01-02 06:25:17 -05:00
|
|
|
ref:
|
|
|
|
type: string
|
|
|
|
description: "Git ref to checkout"
|
|
|
|
required: false
|
|
|
|
workflow_call:
|
|
|
|
inputs:
|
|
|
|
osImage:
|
|
|
|
description: "Full name of OS image (CSP independent image version UID)."
|
|
|
|
type: string
|
|
|
|
required: true
|
|
|
|
isDebugImage:
|
|
|
|
description: "Is OS image a debug image?"
|
|
|
|
type: boolean
|
|
|
|
required: true
|
|
|
|
signMeasurements:
|
|
|
|
description: "Sign and upload the measurements?"
|
|
|
|
type: boolean
|
|
|
|
required: true
|
2023-01-06 03:39:49 -05:00
|
|
|
isRelease:
|
|
|
|
description: "Is this a release?"
|
|
|
|
type: boolean
|
2023-01-02 06:25:17 -05:00
|
|
|
ref:
|
|
|
|
type: string
|
|
|
|
description: "Git ref to checkout"
|
|
|
|
required: false
|
2022-10-27 09:18:37 -04:00
|
|
|
|
2022-09-13 10:01:47 -04:00
|
|
|
jobs:
|
2022-11-25 06:08:24 -05:00
|
|
|
calculate-measurements-on-csp:
|
|
|
|
name: "Calculate Measurements on CSP"
|
2022-11-10 10:55:24 -05:00
|
|
|
runs-on: ubuntu-22.04
|
2022-11-25 06:08:24 -05:00
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
provider: ["aws", "azure", "gcp"]
|
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
|
|
|
env:
|
|
|
|
ARM_CLIENT_ID: ${{ secrets.AZURE_E2E_CLIENT_ID }}
|
|
|
|
ARM_CLIENT_SECRET: ${{ secrets.AZURE_E2E_CLIENT_SECRET }}
|
|
|
|
ARM_SUBSCRIPTION_ID: ${{ secrets.AZURE_E2E_SUBSCRIPTION_ID }}
|
|
|
|
ARM_TENANT_ID: ${{ secrets.AZURE_E2E_TENANT_ID }}
|
2022-12-09 05:51:38 -05:00
|
|
|
outputs:
|
|
|
|
ref: ${{ steps.extract.outputs.ref }}
|
|
|
|
stream: ${{ steps.extract.outputs.stream }}
|
|
|
|
version: ${{ steps.extract.outputs.version }}
|
2022-09-13 10:01:47 -04:00
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
2023-01-05 10:17:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-11-10 11:22:26 -05:00
|
|
|
with:
|
2023-01-02 06:25:17 -05:00
|
|
|
ref: ${{ inputs.ref || github.head_ref }}
|
2022-09-13 10:01:47 -04:00
|
|
|
|
2022-12-09 05:51:38 -05:00
|
|
|
- name: Extract ref, stream and version
|
|
|
|
id: extract
|
|
|
|
uses: ./.github/actions/shortname
|
|
|
|
with:
|
2023-01-02 06:25:17 -05:00
|
|
|
shortname: ${{ inputs.osImage }}
|
2022-12-09 05:51:38 -05:00
|
|
|
|
2022-11-25 06:08:24 -05:00
|
|
|
- name: Check if image definition from build pipeline exists
|
|
|
|
run: |
|
2023-01-04 11:07:16 -05:00
|
|
|
wget -O /dev/null "https://cdn.confidential.cloud/constellation/v1/ref/${{ steps.extract.outputs.ref }}/stream/${{ steps.extract.outputs.stream }}/${{ steps.extract.outputs.version }}/image/info.json"
|
2022-11-25 06:08:24 -05:00
|
|
|
shell: bash
|
|
|
|
|
2022-09-14 09:14:26 -04:00
|
|
|
- name: Setup Go environment
|
2022-12-14 08:55:14 -05:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-09-14 09:14:26 -04:00
|
|
|
with:
|
2022-12-07 08:27:43 -05:00
|
|
|
go-version: "1.19.4"
|
2022-09-14 09:14:26 -04:00
|
|
|
|
2022-11-25 06:08:24 -05:00
|
|
|
- name: Build hack/pcr-reader
|
|
|
|
run: |
|
|
|
|
go build .
|
|
|
|
pwd >> "$GITHUB_PATH"
|
|
|
|
working-directory: hack/pcr-reader
|
|
|
|
shell: bash
|
|
|
|
|
2022-09-13 10:01:47 -04:00
|
|
|
- name: Login to Azure
|
2022-11-25 06:08:24 -05:00
|
|
|
if: matrix.provider == 'azure'
|
2022-11-08 10:13:10 -05:00
|
|
|
uses: ./.github/actions/login_azure
|
2022-09-13 10:01:47 -04:00
|
|
|
with:
|
|
|
|
azure_credentials: ${{ secrets.AZURE_E2E_CREDENTIALS }}
|
|
|
|
|
|
|
|
- name: Create Azure resource group
|
2022-11-25 06:08:24 -05:00
|
|
|
if: matrix.provider == 'azure'
|
2022-09-13 10:01:47 -04:00
|
|
|
id: az_resource_group_gen
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
uuid=$(cat /proc/sys/kernel/random/uuid)
|
|
|
|
name=e2e-test-${uuid%%-*}
|
2022-11-25 06:08:24 -05:00
|
|
|
az group create --location northeurope --name "$name" --tags e2e
|
2022-11-11 08:49:16 -05:00
|
|
|
echo "res_group_name=$name" >> "$GITHUB_OUTPUT"
|
2022-09-13 10:01:47 -04:00
|
|
|
|
2022-11-25 06:08:24 -05:00
|
|
|
- name: Create Cluster in E2E Test environment
|
|
|
|
id: create_cluster
|
|
|
|
uses: ./.github/actions/e2e_test
|
2022-09-13 10:01:47 -04:00
|
|
|
with:
|
2022-11-25 06:08:24 -05:00
|
|
|
workerNodesCount: 1
|
|
|
|
controlNodesCount: 1
|
|
|
|
cloudProvider: ${{ matrix.provider }}
|
2022-11-02 10:16:47 -04:00
|
|
|
gcpProject: ${{ secrets.GCP_E2E_PROJECT }}
|
2022-09-13 10:01:47 -04:00
|
|
|
gcp_service_account_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
|
|
|
|
gcpClusterServiceAccountKey: ${{ secrets.GCP_CLUSTER_SERVICE_ACCOUNT }}
|
2022-11-02 10:16:47 -04:00
|
|
|
azureSubscription: ${{ secrets.AZURE_E2E_SUBSCRIPTION_ID }}
|
|
|
|
azureTenant: ${{ secrets.AZURE_E2E_TENANT_ID }}
|
|
|
|
azureClientID: ${{ secrets.AZURE_E2E_CLIENT_ID }}
|
2022-09-13 10:01:47 -04:00
|
|
|
azureClientSecret: ${{ secrets.AZURE_E2E_CLIENT_SECRET }}
|
2022-11-02 10:16:47 -04:00
|
|
|
azureUserAssignedIdentity: ${{ secrets.AZURE_E2E_USER_ASSIGNED_IDENTITY }}
|
2022-09-13 10:01:47 -04:00
|
|
|
azureResourceGroup: ${{ steps.az_resource_group_gen.outputs.res_group_name }}
|
2023-01-02 06:25:17 -05:00
|
|
|
osImage: ${{ inputs.osImage }}
|
|
|
|
isDebugImage: ${{ inputs.isDebugImage }}
|
2022-11-25 06:08:24 -05:00
|
|
|
test: "nop"
|
|
|
|
|
|
|
|
- name: Fetch PCRs from running cluster
|
|
|
|
run: |
|
|
|
|
KUBECONFIG="${PWD}/constellation-admin.conf" kubectl rollout status ds/verification-service -n kube-system --timeout=3m
|
|
|
|
CONSTELL_IP=$(jq -r ".ip" constellation-id.json)
|
|
|
|
mkdir -p "${{ github.workspace }}/generated-measurements"
|
2023-01-02 06:25:17 -05:00
|
|
|
pcr-reader -constell-ip "${CONSTELL_IP}" -format json -metadata -csp "${{ matrix.provider }}" -image "${{ inputs.osImage }}" > "${{ github.workspace }}/generated-measurements/measurements.json"
|
2022-11-25 06:08:24 -05:00
|
|
|
echo "All PCRs of current boot:"
|
|
|
|
cat "${{ github.workspace }}/generated-measurements/measurements.json"
|
|
|
|
case ${CSP} in
|
|
|
|
aws)
|
|
|
|
yq e 'del(.measurements.[1,10,16,17,18,19,20,21,22,23])' -i "${{ github.workspace }}/generated-measurements/measurements.json"
|
|
|
|
yq '.measurements.4.warnOnly = false |
|
|
|
|
.measurements.8.warnOnly = false |
|
|
|
|
.measurements.9.warnOnly = false |
|
|
|
|
.measurements.11.warnOnly = false |
|
|
|
|
.measurements.12.warnOnly = false |
|
|
|
|
.measurements.13.warnOnly = false |
|
|
|
|
.measurements.15.warnOnly = false |
|
|
|
|
.measurements.15.expected = "0000000000000000000000000000000000000000000000000000000000000000"' \
|
|
|
|
-I 0 -o json -i "${{ github.workspace }}/generated-measurements/measurements.json"
|
|
|
|
;;
|
|
|
|
azure)
|
|
|
|
yq e 'del(.measurements.[0,6,10,16,17,18,19,20,21,22,23])' -I 0 -o json -i "${{ github.workspace }}/generated-measurements/measurements.json"
|
|
|
|
yq '.measurements.4.warnOnly = false |
|
|
|
|
.measurements.8.warnOnly = false |
|
|
|
|
.measurements.9.warnOnly = false |
|
|
|
|
.measurements.11.warnOnly = false |
|
|
|
|
.measurements.12.warnOnly = false |
|
|
|
|
.measurements.13.warnOnly = false |
|
|
|
|
.measurements.15.warnOnly = false |
|
|
|
|
.measurements.15.expected = "0000000000000000000000000000000000000000000000000000000000000000"' \
|
|
|
|
-I 0 -o json -i "${{ github.workspace }}/generated-measurements/measurements.json"
|
|
|
|
;;
|
|
|
|
gcp)
|
|
|
|
yq e 'del(.measurements.[16,17,18,19,20,21,22,23])' -I 0 -o json -i "${{ github.workspace }}/generated-measurements/measurements.json"
|
|
|
|
yq '.measurements.0.warnOnly = false |
|
|
|
|
.measurements.4.warnOnly = false |
|
|
|
|
.measurements.8.warnOnly = false |
|
|
|
|
.measurements.9.warnOnly = false |
|
|
|
|
.measurements.11.warnOnly = false |
|
|
|
|
.measurements.12.warnOnly = false |
|
|
|
|
.measurements.13.warnOnly = false |
|
|
|
|
.measurements.15.warnOnly = false |
|
|
|
|
.measurements.15.expected = "0000000000000000000000000000000000000000000000000000000000000000"' \
|
|
|
|
-I 0 -o json -i "${{ github.workspace }}/generated-measurements/measurements.json"
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "CSP case check failed!"
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
echo "PCRs to be published after removing known variable ones:"
|
|
|
|
cat "${{ github.workspace }}/generated-measurements/measurements.json"
|
|
|
|
mv "${{ github.workspace }}/generated-measurements/measurements.json" "${{ github.workspace }}/generated-measurements/measurements-${{ matrix.provider }}.json"
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
CSP: ${{ matrix.provider }}
|
|
|
|
|
|
|
|
- name: Upload measurements as artifact
|
2023-01-06 11:35:54 -05:00
|
|
|
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
2022-11-25 06:08:24 -05:00
|
|
|
with:
|
|
|
|
name: measurements-${{ matrix.provider }}.json
|
|
|
|
path: "${{ github.workspace }}/generated-measurements"
|
2022-09-13 10:01:47 -04:00
|
|
|
|
|
|
|
- name: Always terminate cluster
|
|
|
|
if: always()
|
|
|
|
continue-on-error: true
|
|
|
|
uses: ./.github/actions/constellation_destroy
|
2022-11-11 08:49:16 -05:00
|
|
|
with:
|
2022-11-25 06:08:24 -05:00
|
|
|
kubeconfig: ${{ steps.create_cluster.outputs.kubeconfig }}
|
2022-09-13 10:01:47 -04:00
|
|
|
|
|
|
|
- name: Always destroy Azure resource group
|
2022-11-25 06:08:24 -05:00
|
|
|
if: always() && matrix.provider == 'azure'
|
2022-09-13 10:01:47 -04:00
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
az group delete \
|
|
|
|
--name ${{ steps.az_resource_group_gen.outputs.res_group_name }} \
|
|
|
|
--force-deletion-types Microsoft.Compute/virtualMachineScaleSets \
|
|
|
|
--force-deletion-types Microsoft.Compute/virtualMachines \
|
|
|
|
--no-wait \
|
|
|
|
--yes
|
2022-11-25 06:08:24 -05:00
|
|
|
|
|
|
|
validate-measurements:
|
|
|
|
name: "Validate Measurements"
|
|
|
|
needs: [calculate-measurements-on-csp]
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
provider: ["aws", "azure", "gcp"]
|
|
|
|
steps:
|
|
|
|
- name: Check out repository
|
2023-01-05 10:17:51 -05:00
|
|
|
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
|
2022-11-25 06:08:24 -05:00
|
|
|
with:
|
2023-01-02 06:25:17 -05:00
|
|
|
ref: ${{ inputs.ref || github.head_ref }}
|
2022-11-25 06:08:24 -05:00
|
|
|
|
|
|
|
- name: Setup Go environment
|
2022-12-14 08:55:14 -05:00
|
|
|
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
|
2022-11-25 06:08:24 -05:00
|
|
|
with:
|
2022-12-07 08:27:43 -05:00
|
|
|
go-version: "1.19.4"
|
2022-11-25 06:08:24 -05:00
|
|
|
|
|
|
|
- name: Build hack/pcr-compare
|
|
|
|
run: |
|
|
|
|
go build .
|
|
|
|
pwd >> "$GITHUB_PATH"
|
|
|
|
working-directory: hack/pcr-compare
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Download calculated measurements from artifact
|
|
|
|
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # tag=v3.1.1
|
|
|
|
with:
|
|
|
|
name: measurements-${{ matrix.provider }}.json
|
|
|
|
path: "${{ github.workspace }}/generated-measurements"
|
|
|
|
|
|
|
|
- name: Download expected measurements from build pipeline for image
|
|
|
|
run: |
|
2023-01-04 11:07:16 -05:00
|
|
|
path="constellation/v1/ref/${ref}/stream/${stream}/${version}/image/csp/${{ matrix.provider }}/measurements.image.json"
|
2022-11-25 06:08:24 -05:00
|
|
|
mkdir -p ${{ github.workspace }}/expected-measurements
|
2022-12-09 05:51:38 -05:00
|
|
|
wget -O ${{ github.workspace }}/expected-measurements/measurements.image.json "https://cdn.confidential.cloud/${path}"
|
2022-11-25 06:08:24 -05:00
|
|
|
cat ${{ github.workspace }}/expected-measurements/measurements.image.json
|
|
|
|
shell: bash
|
2022-12-09 05:51:38 -05:00
|
|
|
env:
|
|
|
|
ref: ${{ needs.calculate-measurements-on-csp.outputs.ref }}
|
|
|
|
stream: ${{ needs.calculate-measurements-on-csp.outputs.stream }}
|
|
|
|
version: ${{ needs.calculate-measurements-on-csp.outputs.version }}
|
2022-11-25 06:08:24 -05:00
|
|
|
|
|
|
|
- name: Check if expected measurements == actual measurements from running cluster
|
|
|
|
run: |
|
|
|
|
pcr-compare ${{ github.workspace }}/expected-measurements/measurements.image.json ${{ github.workspace }}/generated-measurements/measurements-${{ matrix.provider }}.json
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
sign-measurements:
|
|
|
|
name: "Sign Measurements"
|
|
|
|
if: inputs.signMeasurements
|
|
|
|
needs: [calculate-measurements-on-csp, validate-measurements]
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
provider: ["aws", "azure", "gcp"]
|
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
|
|
|
steps:
|
|
|
|
- name: Install Cosign
|
|
|
|
uses: sigstore/cosign-installer@9becc617647dfa20ae7b1151972e9b3a2c338a2b # tag=v2.8.1
|
|
|
|
|
|
|
|
- name: Install Rekor
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
curl -sLO https://github.com/sigstore/rekor/releases/download/v0.12.0/rekor-cli-linux-amd64
|
|
|
|
sudo install rekor-cli-linux-amd64 /usr/local/bin/rekor-cli
|
|
|
|
rm rekor-cli-linux-amd64
|
|
|
|
|
|
|
|
- name: Download measurements from artifact
|
2023-01-06 11:35:54 -05:00
|
|
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
2022-11-25 06:08:24 -05:00
|
|
|
with:
|
|
|
|
name: measurements-${{ matrix.provider }}.json
|
|
|
|
path: "${{ github.workspace }}/generated-measurements"
|
|
|
|
|
|
|
|
- name: Sign measurements
|
|
|
|
shell: bash
|
|
|
|
env:
|
2023-01-06 03:39:49 -05:00
|
|
|
COSIGN_PUBLIC_KEY: ${{ inputs.isRelease && secrets.COSIGN_PUBLIC_KEY || secrets.COSIGN_DEV_PUBLIC_KEY }}
|
|
|
|
COSIGN_PRIVATE_KEY: ${{ inputs.isRelease && secrets.COSIGN_PRIVATE_KEY || secrets.COSIGN_DEV_PRIVATE_KEY }}
|
|
|
|
COSIGN_PASSWORD: ${{ inputs.isRelease && secrets.COSIGN_PASSWORD || secrets.COSIGN_DEV_PASSWORD }}
|
2022-11-25 06:08:24 -05:00
|
|
|
run: |
|
|
|
|
echo "${COSIGN_PUBLIC_KEY}" > cosign.pub
|
|
|
|
# Enabling experimental mode also publishes signature to Rekor
|
|
|
|
COSIGN_EXPERIMENTAL=1 cosign sign-blob --key env://COSIGN_PRIVATE_KEY "${{ github.workspace }}/generated-measurements/measurements-${{ matrix.provider }}.json" > "${{ github.workspace }}/generated-measurements/measurements-${{ matrix.provider }}.json.sig"
|
|
|
|
# Verify - As documentation & check
|
|
|
|
# Local Signature (input: artifact, key, signature)
|
|
|
|
cosign verify-blob --key cosign.pub --signature "${{ github.workspace }}/generated-measurements/measurements-${{ matrix.provider }}.json.sig" "${{ github.workspace }}/generated-measurements/measurements-${{ matrix.provider }}.json"
|
|
|
|
# Transparency Log Signature (input: artifact, key)
|
|
|
|
uuid=$(rekor-cli search --artifact "${{ github.workspace }}/generated-measurements/measurements-${{ matrix.provider }}.json" | tail -n 1)
|
|
|
|
sig=$(rekor-cli get --uuid="${uuid}" --format=json | jq -r .Body.HashedRekordObj.signature.content)
|
|
|
|
cosign verify-blob --key cosign.pub --signature <(echo "${sig}") "${{ github.workspace }}/generated-measurements/measurements-${{ matrix.provider }}.json"
|
|
|
|
|
|
|
|
- name: Upload signed measurements as artifact
|
2023-01-06 11:35:54 -05:00
|
|
|
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
|
2022-11-25 06:08:24 -05:00
|
|
|
with:
|
|
|
|
name: measurements-${{ matrix.provider }}.json.sig
|
|
|
|
path: "${{ github.workspace }}/generated-measurements"
|
|
|
|
|
|
|
|
publish-measurements:
|
|
|
|
name: "Publish Measurements"
|
|
|
|
if: inputs.signMeasurements
|
|
|
|
needs:
|
|
|
|
[calculate-measurements-on-csp, validate-measurements, sign-measurements]
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
provider: ["aws", "azure", "gcp"]
|
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
|
|
|
steps:
|
|
|
|
- name: Download measurements from artifact
|
2023-01-06 11:35:54 -05:00
|
|
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
2022-11-25 06:08:24 -05:00
|
|
|
with:
|
|
|
|
name: measurements-${{ matrix.provider }}.json
|
|
|
|
path: "${{ github.workspace }}/generated-measurements"
|
|
|
|
|
|
|
|
- name: Download signature from artifact
|
2023-01-06 11:35:54 -05:00
|
|
|
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
|
2022-11-25 06:08:24 -05:00
|
|
|
with:
|
|
|
|
name: measurements-${{ matrix.provider }}.json.sig
|
|
|
|
path: "${{ github.workspace }}/generated-measurements"
|
|
|
|
|
|
|
|
- name: Login to AWS
|
|
|
|
uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # tag=v1.7.0
|
|
|
|
with:
|
|
|
|
role-to-assume: arn:aws:iam::795746500882:role/GitHubConstellationImagePipeline
|
|
|
|
aws-region: eu-central-1
|
|
|
|
|
|
|
|
- name: Upload to S3
|
|
|
|
run: |
|
2023-01-04 11:07:16 -05:00
|
|
|
S3_PATH=s3://cdn-constellation-backend/constellation/v1/ref/${ref}/stream/${stream}/${version}/image/csp/${{ matrix.provider }}
|
2022-11-25 06:08:24 -05:00
|
|
|
aws s3 cp "${{ github.workspace }}/generated-measurements/measurements-${{ matrix.provider }}.json" "${S3_PATH}/measurements.json"
|
|
|
|
aws s3 cp "${{ github.workspace }}/generated-measurements/measurements-${{ matrix.provider }}.json.sig" "${S3_PATH}/measurements.json.sig"
|
|
|
|
shell: bash
|
|
|
|
env:
|
|
|
|
IMAGE_UID: ${{ inputs.osImage }}
|
|
|
|
PUBLIC_BUCKET_NAME: ${{ secrets.PUBLIC_BUCKET_NAME }}
|
|
|
|
CSP: ${{ matrix.provider }}
|
2022-12-09 05:51:38 -05:00
|
|
|
ref: ${{ needs.calculate-measurements-on-csp.outputs.ref }}
|
|
|
|
stream: ${{ needs.calculate-measurements-on-csp.outputs.stream }}
|
|
|
|
version: ${{ needs.calculate-measurements-on-csp.outputs.version }}
|