chainloop icon indicating copy to clipboard operation
chainloop copied to clipboard

auto-onboard reusable workflow issue

Open migmartri opened this issue 1 year ago • 1 comments

Two issues

Job doesn't seem to fail if the workflow can't be created

Wrong workflow name

With a configuration like this one, I get the following error

  onboard_workflow:
    name: Onboard Chainloop Workflow
    uses: chainloop-dev/labs/.github/workflows/chainloop_onboard.yml@4173e015dbd5dc2a8802555c268da63d57bbe576
    with:
      project: "chainloop-platform"
      workflow_name: "chainloop-platform-backend-release-production"
    secrets:
      api_token: ${{ secrets.CHAINLOOP_TOKEN }}
ERR failed to create workflow: rpc error: code = InvalidArgument desc = validation error: "chainloop-platform-chainloop-platform-backend-release-production": must be no more than 63 characters

it seems that for some reason the workflow_name I provided gets prepended by the project name. To me that's unexpected since I provided the name explicitly.

migmartri avatar Jun 15 '24 20:06 migmartri

It's very strange, I can't reproduce it using the CLI and the provided information and code seems correct, cc/ @jiparis

migmartri avatar Jun 15 '24 21:06 migmartri