Skip to content

Commit 8a65c6e

Browse files
rlieberman-splunkgabrielm-splunkclaude
authored
Automated release workflow permission updates (#1802)
* Update Splunk Enterprise version from 10.0.0 to 10.2.0 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * add id-token: write to permissions * add COSIGN_DOCKER_MEDIA_TYPES to signing steps * use --recursive for signing distroless image * remove --recursive from cosign verify * cleanup * add --recursive for standard image --------- Co-authored-by: Gabriel J Mendoza <gabrielm@splunk.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8c5511f commit 8a65c6e

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ EKSCTL_VERSION=v0.215.0
88
EKS_CLUSTER_K8_VERSION=1.34
99
EKS_INSTANCE_TYPE=m5.2xlarge
1010
EKS_INSTANCE_TYPE_ARM64=c6g.4xlarge
11-
SPLUNK_ENTERPRISE_RELEASE_IMAGE=splunk/splunk:10.0.0
11+
SPLUNK_ENTERPRISE_RELEASE_IMAGE=splunk/splunk:10.2.0

.github/workflows/automated-release-workflow.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
permissions:
2424
contents: write
25+
id-token: write
2526
pull-requests: write
2627
if: github.ref == 'refs/heads/main'
2728
env:
@@ -111,31 +112,35 @@ jobs:
111112
112113
- name: Sign Splunk Operator image with a key
113114
run: |
114-
cosign sign --yes --key env://COSIGN_PRIVATE_KEY splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}
115+
cosign sign --yes --recursive --key env://COSIGN_PRIVATE_KEY splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}
115116
env:
116117
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
117118
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
119+
COSIGN_DOCKER_MEDIA_TYPES: "1"
118120

119121
- name: Verify Splunk Operator image with a key
120122
run: |
121123
cosign verify --key env://COSIGN_PUBLIC_KEY splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}
122124
env:
123125
COSIGN_PUBLIC_KEY: ${{ secrets.COSIGN_PUBLIC_KEY }}
126+
COSIGN_DOCKER_MEDIA_TYPES: "1"
124127

125128
- name: Promote Distroless RC Image to Release
126129
run: |
127130
regctl image copy ${{ secrets.PUBLIC_ECR_REPOSITORY }}/${{ env.SPLUNK_OPERATOR_RC_IMAGE_NAME }}:${{ github.event.inputs.release_version }}-RC-distroless splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}-distroless
128131
129132
- name: Sign Distroless Splunk Operator image with a key
130133
run: |
131-
cosign sign --yes --key env://COSIGN_PRIVATE_KEY splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}-distroless
134+
cosign sign --yes --recursive --key env://COSIGN_PRIVATE_KEY splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}-distroless
132135
env:
133136
COSIGN_PRIVATE_KEY: ${{ secrets.COSIGN_PRIVATE_KEY }}
134137
COSIGN_PASSWORD: ${{ secrets.COSIGN_PASSWORD }}
138+
COSIGN_DOCKER_MEDIA_TYPES: "1"
135139

136140
- name: Verify Distroless Splunk Operator image with a key
137141
run: |
138142
cosign verify --key env://COSIGN_PUBLIC_KEY splunk/splunk-operator:${{ github.event.inputs.operator_image_tag }}-distroless
139143
env:
140144
COSIGN_PUBLIC_KEY: ${{ secrets.COSIGN_PUBLIC_KEY }}
145+
COSIGN_DOCKER_MEDIA_TYPES: "1"
141146

0 commit comments

Comments
 (0)