Hubspot Deploy Action failing

Hi!

Experiencing a weird workflow error this morning where the build is failing with these errors:

Error: An account needs to be supplied either via “--account” or through setting a “defaultPortal”

Error: Process completed with exit code 1.

I ran fresh hs auth, as well as updated the default account in the cli. Anyone ran into this before?

Addiitonally, the deploy action is set up with github secrets, and is a pretty normal setup.

That particular error usually means the CLI can’t find or recognize which HubSpot account (portal) it should use.

I would recommend verifying your hubspot.config.yml

  • Make sure you have a valid config file in the repository (or in your local environment if you’re running the action from there).
  • Verify that under portals, the portal name/ID you expect is listed, and confirm that defaultPortal is set.

If its a fresh start then should be hs init as the first command to create the new config file