Skip to content

Commit d14e4b9

Browse files
authored
fix: change init parameter (#1382)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent 995d375 commit d14e4b9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/build_and_package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949

5050
- name: Initialize Attestation
5151
run: |
52-
chainloop attestation init --workflow-name $CHAINLOOP_WORKFLOW_NAME
52+
chainloop attestation init --workflow $CHAINLOOP_WORKFLOW_NAME
5353
5454
- name: Docker login to Github Packages
5555
uses: docker/login-action@465a07811f14bebb1938fbed4728c6a1ff8901fc # v2.2.0

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- name: Initialize Attestation
4242
if: ${{ github.event_name != 'pull_request' }}
4343
run: |
44-
chainloop attestation init --workflow-name $CHAINLOOP_WORKFLOW_NAME
44+
chainloop attestation init --workflow $CHAINLOOP_WORKFLOW_NAME
4545
4646
- name: Set up Go
4747
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0

.github/workflows/package_chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: Initialize Attestation
5454
run: |
55-
chainloop attestation init --workflow-name ${CHAINLOOP_WORKFLOW_NAME}
55+
chainloop attestation init --workflow ${CHAINLOOP_WORKFLOW_NAME}
5656
5757
- name: Package Chart
5858
run: helm package deployment/chainloop/

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
3737
- name: Initialize Attestation
3838
run: |
39-
chainloop attestation init --workflow-name ${CHAINLOOP_WORKFLOW_NAME}
39+
chainloop attestation init --workflow ${CHAINLOOP_WORKFLOW_NAME}
4040
4141
- name: Attest all assets
4242
run: |
@@ -51,15 +51,15 @@ jobs:
5151
fi
5252
chainloop attestation add --value "/tmp/github-release/$entry"
5353
done
54-
54+
5555
# Include source code
5656
version=$(echo -n $tag | sed 's/v//g')
5757
gh release download $tag -A tar.gz -D /tmp
5858
chainloop attestation add --value "/tmp/chainloop-$version.tar.gz"
59-
59+
6060
# Include control-plane image
6161
chainloop attestation add --value "ghcr.io/chainloop-dev/chainloop/control-plane:$tag"
62-
62+
6363
# Include cas image
6464
chainloop attestation add --value "ghcr.io/chainloop-dev/chainloop/artifact-cas:$tag"
6565
@@ -92,14 +92,14 @@ jobs:
9292
run: |
9393
chainloop_release_url="## Chainloop Attestation"$'\n'"[View the attestation of this release](https://app.chainloop.dev/attestation/${{ steps.attestation-push.outputs.attestation_sha }})"
9494
current_notes=$(gh release view ${{ github.ref_name }} --json body -q '.body')
95-
95+
9696
if echo "$current_notes" | grep -q "## Chainloop Attestation"; then
9797
# Replace the existing Chainloop Attestation section with the new URL
9898
modified_notes=$(echo "$current_notes" | sed -E "s|## Chainloop Attestation[^\n]*\n\[View the attestation of this release\]\(https://app\.chainloop\.dev/attestation/[^\)]*\)|$chainloop_release_url|")
9999
else
100100
# Add the Chainloop Attestation section to the top
101101
modified_notes="$chainloop_release_url"$'\n\n'"$current_notes"
102102
fi
103-
103+
104104
# Update the release notes and ignore if it fails since we might be lacking permissions to update the release notes
105105
gh release edit ${{ github.ref_name }} -n "$modified_notes" || echo -n "Not enough permissions to edit the release notes. Skipping..."

0 commit comments

Comments
 (0)