Skip to content

Commit b90e8b6

Browse files
nanotaboadaclaude
andcommitted
fix(ci): address review findings in CD pipeline
- Add attestations: write permission required by attest action - Add push-to-registry: true to push attestation to GHCR - Fix empty changelog fallback message when PREVIOUS_TAG is unset Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4669b22 commit b90e8b6

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/maven-cd.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
contents: write
3838
packages: write
3939
id-token: write
40+
attestations: write
4041

4142
steps:
4243
- name: Checkout repository
@@ -108,6 +109,7 @@ jobs:
108109
with:
109110
subject-name: ghcr.io/${{ github.repository }}
110111
subject-digest: ${{ steps.push.outputs.digest }}
112+
push-to-registry: true
111113

112114
- name: Generate changelog
113115
id: changelog
@@ -121,7 +123,11 @@ jobs:
121123
fi
122124
123125
if [ -z "$CHANGELOG" ]; then
124-
CHANGELOG="No new changes since $PREVIOUS_TAG"
126+
if [ -n "$PREVIOUS_TAG" ]; then
127+
CHANGELOG="No new changes since $PREVIOUS_TAG"
128+
else
129+
CHANGELOG="No changes (first release)"
130+
fi
125131
fi
126132
127133
{

0 commit comments

Comments
 (0)