Comments (2)
Thank you for the suggestion.
Yes, I thought about some kind of constant folding. Since type conversions of expressions of GitHub Actions workflow are quite implicit (for example, 'true' == true
is true
), it would be hard to apply constant folding in many cases. As you pointed, it would be useful for some specific properties though.
I think adding special check to event_name
(#69) and then considering about more generic way would be good.
from actionlint.
Thanks for the response.
To be perfectly honest, I don't fully understand what you're saying. But that's fine, I don't think I need to!
The example I gave is a simplified version of a recent mistake I made with a workflow and I realised that it could be possible for actionlint to point this error out to me. Whether doing so is easy, practical, feasible or even possible is beyond me.
I'm happy either way whether this type of error can be addressed by actionlint or not, just thought it worth mentioning in case it might be useful.
from actionlint.
Related Issues (20)
- [BUG] `timeout-minutes` should allow expressions (but it demands `floats`) HOT 2
- Feature Request: checking workflow inputs for Untrusted input HOT 1
- Support tsc to check actions/github-script steps HOT 1
- Feature request: Require job name
- feature request: detect invalid reference to a workflow file HOT 1
- support macOS-14 runs on HOT 3
- Feature request: Allow usage of .shellcheckrc HOT 6
- Disallow usage of `>-`, which is not supported by GitHub actions HOT 5
- Release recent changes HOT 1
- Composite actions support? HOT 3
- False Positive On fromJson in services Mapping Nodes
- Failed on "google-github-actions/get-secretmanager-secrets" HOT 7
- v1.6.27 Actionlint do not recognising outputs from google-github-actions/get-secretmanager-secrets@v2 HOT 1
- Seems like actionlint lack support to detect when we call reusable workflow in the main workflow. HOT 2
- Default shell not being detected - currently treats all `run` on Linux as shell HOT 2
- actionlint returns fatal error on `run:` script with broken Python code
- runner property "environment" is not defined in object type HOT 3
- Support Excluding through expression HOT 1
- `dorny/paths-filter@v3` added a new option HOT 3
- Detect malformed github variable declarations
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actionlint.