Skip to content

Commit 1538226

Browse files
committed
fix function parameter
Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
1 parent 560a28c commit 1538226

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release_dagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
run: |
2626
dagger call -m github.com/chainloop-dev/integration-demo/chainloop-demo/dagger build-and-publish \
2727
--proj . \
28-
--chainloop-name $CHAINLOOP_WORKFLOW_NAME \
28+
--chainloop-workflow-name $CHAINLOOP_WORKFLOW_NAME \
2929
--chainloop-token env:CHAINLOOP_TOKEN \
3030
--chainloop-signing-key env:CHAINLOOP_SIGNING_KEY \
3131
--chainloop-passphrase env:CHAINLOOP_SIGNING_PASSWORD

chainloop-demo/dagger/src/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ type BuildAndRelease struct{}
1414
// - Generate a CycloneDX Software Bill Of Materials using Syft
1515
// - Attest the pieces of evidence (binary, container image, and SBOM) using Chainloop
1616
// https://docs.chainloop.dev/getting-started/attestation-crafting
17-
func (m *BuildAndRelease) BuildAndPublish(ctx context.Context, proj *Directory, name string, chainloopToken, chainloopSigningKey, chainloopPassphrase *Secret) (status string, err error) {
17+
func (m *BuildAndRelease) BuildAndPublish(ctx context.Context, proj *Directory, chainloopWorkflowName string, chainloopToken, chainloopSigningKey, chainloopPassphrase *Secret) (status string, err error) {
1818
// Initialize the attestation
19-
attestation := dag.Chainloop().Init(chainloopToken, name, dagger.ChainloopInitOpts{Repository: proj})
19+
attestation := dag.Chainloop().Init(chainloopToken, chainloopWorkflowName, dagger.ChainloopInitOpts{Repository: proj})
2020
// Force the execution of the init method
2121
// If Sync is not executed, init will happen at the end of the function
2222
_, err = attestation.Sync(ctx)

0 commit comments

Comments
 (0)