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
8 changes: 4 additions & 4 deletions .github/actions/build_ami/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ runs:

- name: Get EIF for Run ${{ inputs.operator_run_number }}
id: get_eif_for_run
uses: dawidd6/action-download-artifact@v6
uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6
if: ${{ inputs.operator_release == '' }}
with:
name: 'aws-${{ inputs.identity_scope }}-deployment-files-.*'
Expand All @@ -94,14 +94,14 @@ runs:
ls ./scripts/aws/uid2-operator-ami/artifacts/ -al

- name: Configure UID2 AWS credentials
uses: aws-actions/configure-aws-credentials@v4
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
if: ${{ inputs.identity_scope == 'uid2' }}
with:
aws-region: ${{ inputs.uid2_aws_region }}
role-to-assume: ${{ inputs.uid2_aws_role }}

- name: Configure EUID AWS credentials
uses: aws-actions/configure-aws-credentials@v4
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
if: ${{ inputs.identity_scope == 'euid' }}
with:
aws-region: ${{ inputs.euid_aws_region }}
Expand All @@ -124,7 +124,7 @@ runs:

- name: Setup Packer
id: setup-packer
uses: hashicorp/setup-packer@main
uses: hashicorp/setup-packer@c3d53c525d422944e50ee27b840746d6522b08de # main

- name: Create AMI
shell: bash
Expand Down
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 @@ -38,7 +38,7 @@ runs:
fetch-depth: 0

- name: Restore timestamps
uses: thetradedesk/git-restore-mtime-action@v1.3
uses: thetradedesk/git-restore-mtime-action@a6059d100648f8027eb1af5e6e6fd6e1328083af # v1.3

- name: Free up space - delete preinstalled tools
shell: bash
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 @@ -59,7 +59,7 @@ runs:

- name: Get EIF for Run ${{ inputs.operator_run_number }}
id: get_eif_for_run
uses: dawidd6/action-download-artifact@v6
uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6
if: ${{ inputs.operator_release == '' }}
with:
name: 'aws-${{ inputs.identity_scope }}-deployment-files-.*'
Expand Down Expand Up @@ -112,22 +112,22 @@ runs:
df -h

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

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
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@v5
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
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@v5
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ${{ inputs.artifacts_output_dir }}
push: true
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 @@ -40,7 +40,7 @@ runs:

- name: Approve Major release
if: inputs.release_type == 'Major'
uses: trstringer/manual-approval@v1
uses: trstringer/manual-approval@74d99dff7380e3e4b122d4ededcbca2b6ce59367 # v1
with:
secret: ${{ github.token }}
approvers: atarassov-ttd,vishalegbert-ttd,sunnywu,clarkxuyang
Expand Down Expand Up @@ -77,7 +77,7 @@ runs:
fetch-depth: 0

- name: Restore timestamps
uses: thetradedesk/git-restore-mtime-action@v1.3
uses: thetradedesk/git-restore-mtime-action@a6059d100648f8027eb1af5e6e6fd6e1328083af # v1.3

- name: Set version number
id: version
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-uid2-ami.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
path: ./artifacts

- name: Delete staging artifacts
uses: geekyeggo/delete-artifact@v5
uses: geekyeggo/delete-artifact@b54d29a59e55046d1f7fc8226cdda507e6b9cf62 # v5
with:
name: |
uid2_AMI_measurement
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-all-operators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
echo "vulnerability_severity=${VULNERABILITY_SEVERITY}" >> $GITHUB_OUTPUT
- name: Approve Major release
if: env.RELEASE_TYPE == 'Major'
uses: trstringer/manual-approval@v1
uses: trstringer/manual-approval@74d99dff7380e3e4b122d4ededcbca2b6ce59367 # v1
with:
secret: ${{ github.token }}
approvers: atarassov-ttd,vishalegbert-ttd,sunnywu,clarkxuyang
Expand Down Expand Up @@ -208,7 +208,7 @@ jobs:

- name: Build changelog
id: changelog
uses: mikepenz/release-changelog-builder-action@v4
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
with:
toTag: v${{ needs.start.outputs.new_version }}
configurationJson: |
Expand All @@ -229,7 +229,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@v2
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
with:
name: v${{ needs.start.outputs.new_version }}
body: ${{ steps.changelog.outputs.changelog }}
Expand All @@ -253,4 +253,4 @@ jobs:
SLACK_MESSAGE: ':x: Operator Pipeline failed'
SLACK_TITLE: Pipeline Failed in ${{ github.workflow }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
uses: rtCamp/action-slack-notify@v2
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2
4 changes: 2 additions & 2 deletions .github/workflows/publish-aws-nitro-eif.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ jobs:
- name: Build changelog
id: github_release
if: ${{ inputs.version_number_input == '' && needs.start.outputs.is_release == 'true' }}
uses: mikepenz/release-changelog-builder-action@v4
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
with:
configurationJson: |
{
Expand All @@ -192,7 +192,7 @@ jobs:

- name: Create release
if: ${{ inputs.version_number_input == '' && needs.start.outputs.is_release == 'true' }}
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
with:
name: ${{ needs.start.outputs.new_version }}
body: ${{ steps.github_release.outputs.changelog }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-azure-cc-enclave-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,22 +101,22 @@ jobs:
cp scripts/confidential_compute.py ${{ env.DOCKER_CONTEXT_PATH }}/

- name: Log in to the Docker container registry
uses: docker/login-action@v3
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ steps.update_version.outputs.image_tag }}

- name: Build and export to Docker
uses: docker/build-push-action@v5
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ${{ env.DOCKER_CONTEXT_PATH }}
load: true
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:

- name: Push to Docker
id: push-to-docker
uses: docker/build-push-action@v5
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ${{ env.DOCKER_CONTEXT_PATH }}
push: true
Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/publish-gcp-oidc-enclave-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -99,47 +99,47 @@ jobs:
cp scripts/confidential_compute.py ${{ env.DOCKER_CONTEXT_PATH }}/

- name: Log in to the Docker container registry
uses: docker/login-action@v3
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Authenticate with Google Cloud
id: gcp_auth
uses: google-github-actions/auth@v2
uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2
with:
token_format: access_token
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER_ID }}
service_account: ${{ vars.GCP_SERVICE_ACCOUNT }}
access_token_lifetime: 300s

- name: Log in to the GCP Registry
uses: docker/login-action@v3
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
with:
registry: ${{ env.GCP_REGISTRY }}
username: oauth2accesstoken
password: ${{ steps.gcp_auth.outputs.access_token }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ steps.update_version.outputs.image_tag }}

- name: Extract metadata (tags, labels) for GCP image
id: meta-gcp
uses: docker/metadata-action@v5
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
with:
images: ${{ env.GCP_REGISTRY }}/${{ env.GCP_GAR_PROJECT }}/${{ env.IMAGE_NAME }}
tags: |
type=raw,value=${{ steps.update_version.outputs.image_tag }}

- name: Extract metadata (tags, labels) for all Docker images
id: meta-all
uses: docker/metadata-action@v5
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
with:
images: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
Expand All @@ -148,7 +148,7 @@ jobs:
type=raw,value=${{ steps.update_version.outputs.new_version }}-${{ env.ENCLAVE_PROTOCOL }}

- name: Build and export to Docker
uses: docker/build-push-action@v5
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ${{ env.DOCKER_CONTEXT_PATH }}
load: true
Expand All @@ -169,7 +169,7 @@ jobs:

- name: Push to Docker
id: push-to-docker
uses: docker/build-push-action@v5
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
with:
context: ${{ env.DOCKER_CONTEXT_PATH }}
push: true
Expand Down Expand Up @@ -211,7 +211,7 @@ jobs:
- name: Build changelog
id: github_release
if: ${{ inputs.version_number_input == '' && steps.update_version.outputs.is_release == 'true' }}
uses: mikepenz/release-changelog-builder-action@v4
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
with:
configurationJson: |
{
Expand All @@ -223,7 +223,7 @@ jobs:

- name: Create release
if: ${{ inputs.version_number_input == '' && steps.update_version.outputs.is_release == 'true' }}
uses: softprops/action-gh-release@v2
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
with:
name: ${{ steps.update_version.outputs.new_version }}
body: ${{ steps.github_release.outputs.changelog }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
steps:
- name: Approve Major release
if: inputs.release_type == 'Major'
uses: trstringer/manual-approval@v1
uses: trstringer/manual-approval@74d99dff7380e3e4b122d4ededcbca2b6ce59367 # v1
with:
secret: ${{ github.token }}
approvers: atarassov-ttd,vishalegbert-ttd,sunnywu,clarkxuyang
Expand Down
Loading