Skip to content

Commit a624b10

Browse files
committedMar 6, 2025
wip
1 parent aa13864 commit a624b10

File tree

3 files changed

+5
-10
lines changed

3 files changed

+5
-10
lines changed
 

‎.github/actions/acipolicygen_cc/action.yaml

+3-7
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,11 @@ inputs:
44
template_file:
55
description: 'Path to the template file'
66
required: true
7-
output_file:
8-
description: 'Path to the output policy file'
9-
required: true
10-
# outputs:
11-
# policy:
12-
# description: 'The base64-encoded policy'
7+
outputs:
8+
policy:
9+
description: 'The base64-encoded policy'
1310
runs:
1411
using: 'docker'
1512
image: Dockerfile
1613
args:
1714
- ${{ inputs.template_file }}
18-
- ${{ inputs.output_file }}

‎.github/actions/acipolicygen_cc/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ az confcom acipolicygen \
55
--template-file \
66
$GITHUB_WORKSPACE/$1 \
77
--print-policy \
8-
>> $GITHUB_WORKSPACE/$2
8+
>>"$GITHUB_OUTPUT"
99

1010
# if [[ $? -ne 0 ]]; then
1111
# exit 1

‎.github/workflows/publish-azure-cc-enclave-docker.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -217,12 +217,11 @@ jobs:
217217
with:
218218
# TODO
219219
template_file: deployment-artifacts/operator.json
220-
output_file: ${{ env.SCRIPTS_DIR }}/policy.base64
221220

222221
- name: Update operator template
223222
# TODO
224223
run: |
225-
whoami
224+
echo -n ${{ steps.aci_policy.outputs.policy }} >> ${{ env.SCRIPTS_DIR }}/policy.base64
226225
ls -lah ${{ env.SCRIPTS_DIR }}/policy.base64
227226
# Export the policy, update it to turn off allow_environment_variable_dropping, and then insert it into the template
228227
# note that the EnclaveId is generated by generate.py on the raw policy, not the base64 version

0 commit comments

Comments
 (0)