Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/actions/build_ami/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ runs:
GITHUB_CONTEXT: ${{ toJson(github) }}

- name: Checkout full history
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Get EIF for Release ${{ inputs.operator_release }}
uses: ./.github/actions/download_release_artifact
Expand Down Expand Up @@ -190,7 +190,7 @@ runs:
ls -al

- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ inputs.identity_scope }}_AMI_measurement
path: ./scripts/aws/uid2-operator-ami/${{ inputs.identity_scope }}_AMI_measurement.txt
2 changes: 1 addition & 1 deletion .github/actions/build_aws_eif/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ runs:

steps:
- name: Checkout full history at commit sha ${{ inputs.commit_sha }}
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
ref: ${{ inputs.commit_sha }}
# git-restore-mtime requires full git history. The default fetch-depth value (1) creates a shallow checkout.
Expand Down
10 changes: 5 additions & 5 deletions .github/actions/build_eks_docker_image/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ runs:

steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Make output dir
shell: bash
Expand Down Expand Up @@ -112,22 +112,22 @@ runs:
df -h

- name: Log in to the Docker container registry
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
uses: docker/login-action@650006c6eb7dba73a995cc03b0b2d7f5ca915bee # v4.2.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ inputs.github_token }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
uses: docker/metadata-action@80c7e94dd9b9319bd5eb7a0e0fe9291e23a2a2e9 # v6.1.0
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-eks-${{ inputs.identity_scope }}
tags: |
type=raw,value=${{ steps.versionNumber.outputs.VERSION_NUMBER }}.${{ github.run_number }}

- name: Build and export to Docker
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: ${{ inputs.artifacts_output_dir }}
load: true
Expand All @@ -140,7 +140,7 @@ runs:

- name: Push to Docker
id: push-to-docker
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
uses: docker/build-push-action@f9f3042f7e2789586610d6e8b85c8f03e5195baf # v7.2.0
with:
context: ${{ inputs.artifacts_output_dir }}
push: true
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/download_release_artifact/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ runs:
steps:
- name: Get Artifact Ids
id: get_asset_id
uses: actions/github-script@v7
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
github-token: ${{ inputs.github_token }}
result-encoding: string
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/update_operator_version/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,14 @@ runs:
IS_RELEASE: ${{ steps.checkRelease.outputs.is_release }}

- name: Checkout full history on Main
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
if: ${{ inputs.version_number_input == '' }}
with:
# git-restore-mtime requires full git history. The default fetch-depth value (1) creates a shallow checkout.
fetch-depth: 0

- name: Checkout full history at tag v${{ inputs.version_number_input }}
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
if: ${{ inputs.version_number_input != '' }}
with:
ref: v${{ inputs.version_number_input }}
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/build-uid2-ami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
enclave_id: ${{ steps.buildAMI.outputs.enclave_id }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
Comment thread
mcollins-ttd marked this conversation as resolved.

- name: Build UID2 Operator AMI
id: buildAMI
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:
enclave_id: ${{ steps.buildAMI.outputs.enclave_id }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Pre-cleanup
shell: bash
Expand Down Expand Up @@ -123,26 +123,26 @@ jobs:
needs: [buildUID2, testUID2Ami, testEUIDAmi]
steps:
- name: Download UID2 artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: uid2_AMI_measurement
path: ./artifacts

- name: Download EUID artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
name: euid_AMI_measurement
path: ./artifacts

- name: Delete staging artifacts
uses: geekyeggo/delete-artifact@b54d29a59e55046d1f7fc8226cdda507e6b9cf62 # v5
uses: geekyeggo/delete-artifact@176a747ab7e287e3ff4787bf8a148716375ca118 # v6.0.0
with:
name: |
uid2_AMI_measurement
euid_AMI_measurement

- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: aws-ami-ids-${{ needs.buildUID2.outputs.version_number }}
path: ./artifacts/
24 changes: 12 additions & 12 deletions .github/workflows/publish-all-operators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
release_type: ${{ inputs.release_type }}

- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0

Expand Down Expand Up @@ -155,61 +155,61 @@ jobs:
needs: [start, buildPublic, buildGCP, buildAzure, buildAWS, buildAMI]
steps:
- name: Checkout repo
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
with:
fetch-depth: 0

- name: Download public manifest
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: public-image-*
path: ./manifests/public_operator

- name: Download GCP manifest
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: gcp-oidc-enclave-ids-*
path: ./manifests/gcp_oidc_operator

- name: Download Azure CC manifest
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: azure-cc-enclave-id-*
path: ./manifests/azure_cc_operator

- name: Download Azure AKS manifest
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: azure-aks-enclave-id-*
path: ./manifests/azure_aks_operator

- name: Download EIF manifest
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: 'aws-eif-enclave-ids-*'
path: ./manifests/aws_eif

- name: Download AWS AMI manifest
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: 'aws-ami-ids-*'
path: ./manifests/aws_ami

- name: Download Deployment Files
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: '*-deployment-files-*'
path: ./deployment

- name: Upload artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: uid2-operator-release-${{ needs.start.outputs.new_version }}-manifests
path: ./manifests

- name: Build changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
uses: mikepenz/release-changelog-builder-action@348e88fab4c37338b1e803ceb2d4a7a5db6c0833 # v6.2.2
with:
toTag: v${{ needs.start.outputs.new_version }}
configurationJson: |
Expand All @@ -230,7 +230,7 @@ jobs:
(cd manifests && zip -r ../uid2-operator-release-manifests-${{ needs.start.outputs.new_version }}.zip .)

- name: Create draft release
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
with:
name: v${{ needs.start.outputs.new_version }}
body: ${{ steps.changelog.outputs.changelog }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-aws-eks-nitro-enclave-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Build Docker Image for EKS Pod
id: build_docker_image_uid
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Build Docker Image for EKS Pod
id: build_docker_image_euid
Expand Down Expand Up @@ -128,7 +128,7 @@ jobs:
echo "Enclave ID (maybe shared by other images): " ${{ needs.buildEUIDImage.outputs.enclave_id }} >> ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/manifests/aws-eks-euid-enclave-id-${{ needs.buildEUIDImage.outputs.image_tag }}.txt

- name: Save Manifests as build artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Comment thread
mcollins-ttd marked this conversation as resolved.
with:
name: aws-eks-enclave-ids-${{ needs.buildUID2Image.outputs.image_tag }}
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/manifests
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/publish-aws-nitro-eif.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
GITHUB_CONTEXT: ${{ toJson(github) }}

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Update Operator Version
id: update_version
Expand All @@ -74,7 +74,7 @@ jobs:
needs: start
Comment thread
mcollins-ttd marked this conversation as resolved.
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Build UID2 AWS EIF
id: build_uid2_eif
Expand All @@ -93,7 +93,7 @@ jobs:
df -h

- name: Save UID2 eif artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: aws-uid2-deployment-files-${{ needs.start.outputs.new_version }}
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/uid2
Expand All @@ -113,7 +113,7 @@ jobs:
needs: start
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3

- name: Build EUID AWS EIF
id: build_euid_eif
Expand All @@ -132,7 +132,7 @@ jobs:
df -h

- name: Save EUID eif artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: aws-euid-deployment-files-${{ needs.start.outputs.new_version }}
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/euid
Expand All @@ -157,12 +157,12 @@ jobs:
df -h

- name: Download UID2 artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/uid2

- name: Download EUID artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/euid

Expand All @@ -173,7 +173,7 @@ jobs:
echo ${{ needs.buildEUIDEIF.outputs.euid_enclave_id }} >> ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/manifests/aws-euid-enclave-id-${{ needs.start.outputs.new_version }}.txt

- name: Save Manifests as build artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: aws-eif-enclave-ids-${{ needs.start.outputs.new_version }}
path: ${{ env.ARTIFACTS_BASE_OUTPUT_DIR }}/manifests
Expand All @@ -182,7 +182,7 @@ jobs:
- name: Build changelog
id: github_release
Comment thread
mcollins-ttd marked this conversation as resolved.
if: ${{ inputs.version_number_input == '' && needs.start.outputs.is_release == 'true' }}
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
uses: mikepenz/release-changelog-builder-action@348e88fab4c37338b1e803ceb2d4a7a5db6c0833 # v6.2.2
with:
configurationJson: |
{
Expand All @@ -194,7 +194,7 @@ jobs:

- name: Create release
if: ${{ inputs.version_number_input == '' && needs.start.outputs.is_release == 'true' }}
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
uses: softprops/action-gh-release@b4309332981a82ec1c5618f44dd2e27cc8bfbfda # v3.0.0
with:
name: ${{ needs.start.outputs.new_version }}
body: ${{ steps.github_release.outputs.changelog }}
Expand Down
Loading
Loading