actions icon indicating copy to clipboard operation
actions copied to clipboard

No Org-ID given error

Open crayon-robertelliott opened this issue 1 year ago • 1 comments

I've tried running these actions in my personal org and have even started a trial thinking maybe this doesn't work unless on a paid version. I've copied the actions from the marketplace but still getting an error on the run action that no org ID given. The init states the org and project are found though. Any help would be appreciated.

Set up and initialize Pluralith

- name: Pluralith Init
  uses: Pluralith/actions/[email protected]
  with:
    terraform-path: ${{ github.workspace }}/${{ env.environment }}/Terraform
    api-key: ${{ secrets.PLURALITH_API_KEY }}
    org-id: ${{ env.PLURALITH_ORG_ID }}
    project-id: ${{ env.PLURALITH_PROJECT_ID }}
    project-name: ${{ env.PLURALITH_ORG_NAME }}

# Run Pluralith to generate an infrastructure diagram and comment body
- name: Pluralith Run
  uses: Pluralith/actions/[email protected]
  with:
    terraform-command: "plan"
    terraform-path: ${{ github.workspace }}/${{ env.environment }}/Terraform
    show-changes: true
    show-drift: true

# Post the generated diagram as a GitHub comment
- name: Pluralith Comment
  uses: Pluralith/actions/[email protected]
  with:
    terraform-path: ${{ github.workspace }}/${{ env.environment }}/Terraform

Init run:

✔ Graph Module updated!

Welcome to Pluralith!

→ Authentication
  ✔ API key is valid, you are authenticated!

→ Project Setup
  ✔ Existing Org Found
  ✔ Existing Project Found
Pluralith CLI v0.2.2 set up and initialized

Run:

⠿ Initiating Plan Run ⇢ Posting To Pluralith Dashboard
 → Branch detected: dev

→ Authentication
  ✔ API key is valid, you are authenticated!

→ Project Setup
  ✘ No Org ID given
PreRun: failed to verify org id -> RunInit: no org id given

crayon-robertelliott avatar May 12 '23 16:05 crayon-robertelliott

Did you ever find a solution to this? It still seems to be an issue.

It seems that pluralith plan doesn't use the environment vars, so doesn't authenticate properly, and the data from pluralith init are passing to the next stage.

Edit: I've confirmed that providing a pluralith.yml file in the repo works to bypass this issue. That shouldn't be a requirement for this to work though.

Just-Insane avatar May 13 '24 04:05 Just-Insane