{"id":15749995,"url":"https://github.com/cschleiden/actionlint-interpreter","last_synced_at":"2026-04-15T15:44:01.907Z","repository":{"id":42462983,"uuid":"469567544","full_name":"cschleiden/actionlint-interpreter","owner":"cschleiden","description":"Interpreter for GitHub Actions Expressions","archived":false,"fork":false,"pushed_at":"2022-04-04T22:32:48.000Z","size":37,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-06T11:54:49.832Z","etag":null,"topics":["actions","github","go"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cschleiden.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-03-14T03:29:07.000Z","updated_at":"2022-05-12T23:31:06.000Z","dependencies_parsed_at":"2022-09-12T23:22:04.988Z","dependency_job_id":null,"html_url":"https://github.com/cschleiden/actionlint-interpreter","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschleiden%2Factionlint-interpreter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschleiden%2Factionlint-interpreter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschleiden%2Factionlint-interpreter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cschleiden%2Factionlint-interpreter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cschleiden","download_url":"https://codeload.github.com/cschleiden/actionlint-interpreter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246429493,"owners_count":20775808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github","go"],"created_at":"2024-10-04T06:21:34.644Z","updated_at":"2026-04-15T15:43:56.862Z","avatar_url":"https://github.com/cschleiden.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# actionlint-interpreter\n\nSimple expression interpreter for _GitHub Actions Expressions_ operating on the AST produced by https://github.com/rhysd/actionlint.\n\n## Usage\n\n```golang\nexpression := \"input.foo \u003c= input.bar\"\n\n// Lex \u0026 Parse\nlexer := actionlint.NewExprLexer(expression + \"}}\")\nparser := actionlint.NewExprParser()\nn, perr := parser.Parse(lexer)\nif perr != nil {\n  panic(perr)\n}\n\n// Evaluate expressions\nresult, err := Evaluate(n, ContextData{\n  \"input\": ContextData{\n    \"foo\": float64(1),\n    \"bar\": float64(2),\n  },\n})\nif err != nil {\n  panic(err)\n}\n\nfmt.Println(result.Value)\n// Output: true\n```\n\n### TODO\n\nNot everything is implemented yet:\n\n#### Context access\n\n- [x] Finish object \u0026 array access\n- [ ] Wildcard access (`inputs.*.foo`)\n\n#### Functions\n\n- [ ] contains\n- [x] startsWith\n- [x] endsWith\n- [ ] format\n- [x] join\n- [ ] toJSON\n- [x] fromJSON\n- [ ] hashFiles\n\nStatus check functions:\n\n- [ ] success\n- [ ] always\n- [ ] cancelled\n- [ ] failure","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcschleiden%2Factionlint-interpreter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcschleiden%2Factionlint-interpreter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcschleiden%2Factionlint-interpreter/lists"}