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

ERROR - Could not write the graph in DOT format. #326

Closed
hcdiekmann opened this issue Oct 9, 2023 · 1 comment · Fixed by #429
Closed

ERROR - Could not write the graph in DOT format. #326

hcdiekmann opened this issue Oct 9, 2023 · 1 comment · Fixed by #429
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@hcdiekmann
Copy link

Describe the bug
Using -g flag to generate DOT model gives missing pydot pygraphviz ERROR, although installed

To Reproduce

name: Lint CloudFormation Templates

on:
  push:
    branches:
      - main

jobs:
  cloudformation-linter:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v3

      - name: Setup Cloud Formation Linter with Latest Version
        uses: scottbrenner/cfn-lint-action@v2

      - name: Install pydot and pygraphviz
        run: |
          sudo apt-get install graphviz graphviz-dev
          pip install pygraphviz
          pip install pydot

      - name: Run Linter and generate DOT files
        run: |
          cfn-lint --version
          cfn-lint -g -t cloudformation/templates/*.yaml

      - name: Commit and push DOT files
        run: |
          git config --local user.email "[email protected]"
          git config --local user.name "GitHub Action"
          git add cloudformation/templates/*.dot
          git commit -m "Add generated DOT graph" || echo "No changes to commit"
          git push

Expected behavior
Creates a file in the same directory as the template that models the template's resources in DOT format

Screenshots
image

GitHub Actions Runner configuration (please complete the following information):

  • OS: ubuntu-latest
@hcdiekmann hcdiekmann added the bug Something isn't working label Oct 9, 2023
@ScottBrenner
Copy link
Owner

ScottBrenner commented Oct 22, 2023

Seems related to aws-cloudformation/cfn-lint#1753, possibly #274 (comment) as well.

@ScottBrenner ScottBrenner added the help wanted Extra attention is needed label Jan 15, 2024
@ScottBrenner ScottBrenner self-assigned this Aug 19, 2024
@ScottBrenner ScottBrenner linked a pull request Aug 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants