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

Invalid policiy files due to tailing comma, isn't marked as invalid. #248

Open
kisst opened this issue Oct 16, 2024 · 0 comments
Open

Invalid policiy files due to tailing comma, isn't marked as invalid. #248

kisst opened this issue Oct 16, 2024 · 0 comments

Comments

@kisst
Copy link

kisst commented Oct 16, 2024

$ tail -n 15 *.json
==> correct.json <==
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Stmt1729104489507",
      "Action": [
        "q:StartConversation"
      ],
      "Effect": "Allow",
      "Resource": "*"
    }
  ]
}

==> incorrect.json <==
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "Stmt1729104489507",
      "Action": [
        "q:StartConversation",
      ],
      "Effect": "Allow",
      "Resource": "*"
    }
  ]
}
$ parliament --version
parliament 1.6.3
$ parliament --file correct.json && echo "OK" || echo "FAILED"
OK
$ parliament --file incorrect.json && echo "OK" || echo "FAILED"
OK
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

1 participant