Skip to content

fix case insensitive object index access github['REF'] / preserve case of env.TEST in parser #541

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ChristopherHX
Copy link

  • preserve property case of objderef to allow case sensitive env access in act

In my workflow script interpreter using your parser I faced the problem that

  • env.TEST get parsed as env.test
  • However on linux/macOS is env.TEST != env.test (the only context with an exception)
  • Now our external interpreter has no chance to get the original case of the parsed expression

This PR preserves the original value much longer, e.g. error messages now quote the original case while case insensitivity is preserved.

I also noticed an inconsistency here e.g. github['REF'] was marked as invalid, while github.REF passed that I fixed here as well.

I am a user of actionlint as a library, not of the cli tool itself

* preserve property case of objderef to allow case sensitive env access in act
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

Successfully merging this pull request may close these issues.

1 participant