Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: - GitHub Action CI Backendless mode + Terragrunt will cause a segmentation fault #1423

Open
ben-of-codecraft opened this issue May 3, 2024 · 2 comments

Comments

@ben-of-codecraft
Copy link
Contributor

Steps to recreate

  1. Use digger config

digger.yaml

projects:
- name: dev
  dir: dev
  terragrunt: true
  
  1. use workflow config
name: Digger Workflow

on:
workflow_dispatch:
  inputs:
    id:
      description: 'run identifier'
      required: false
    job:
      required: true
    comment_id:
      required: true

jobs:
plan:
  runs-on: ubuntu-latest
  permissions:
    contents: write
    actions: write
    id-token: write
    pull-requests: write
    statuses: write

  steps:
  - uses: actions/checkout@v4
  - name: digger run
    uses: diggerhq/digger@v0.4.19
    with:
      setup-aws: true
      setup-terragrunt: true
      setup-checkov: false
      aws-role-to-assume: "REDACTED"
      no-backend: true
      aws-region: us-west-2
    env:
      GITHUB_CONTEXT: ${{ toJson(github) }}
      GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

image

@motatoes
Copy link
Contributor

motatoes commented May 4, 2024

Hey @ben-of-codecraft ! Thanks for identifying this bug. I noticed you are using it with the app and that error message is coming from there, however you have no-backend: true set in the action argument. Is this argument intended or you wanted to remove it?

I think we should throw an error earlier if the flag no-backend is set yet the workflow dispatch event invoked digger. If you remove that flag and confirm it works we can ship a fix for this particular case

@ben-of-codecraft
Copy link
Contributor Author

ben-of-codecraft commented May 6, 2024

@motatoes retested this today. The cause was the dispatch with no-backend = true. If you change it to PR workflow and no dispatch, it does work fine, as you pointed out.

Thanks for looking at this.

I think an earlier error that helps users know what is causing the problem would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants