-
Notifications
You must be signed in to change notification settings - Fork 36
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
Not an issue, but a question: how to easily use same set of LAMS rules across multiple repos in Github Actions? #212
Comments
Starting in v3.3 I added the ability to source manifest arguments from a few different locations, with different levels of priority. The lowest level being "manifest defaults", which can be overriden by the manifest file in a project, and which in turn can be overridden by an explicitly identified manifest file as a command line argument. So, you should be able to copy in rules that you want by default, or to force, by simply copying in those files during the GHA's initial steps, then passing them to the appropriate command line arguments: |
Do you have examples of how the json object or json file would look? |
Here is an example of the JSON format: https://github.com/looker-open-source/look-at-me-sideways/blob/master/__tests__/dummy-projects/29-manifest-loading/inline-json/index.test.js#L3 Alternately, if you want to get the JSON representation for your existing lkml file, you can |
Hmm seems like if I use |
Additional file types (JSON, YAML) (or even alternate filenames with a lkml type for that matter) are not picked up by default within a LookML project, as they have no inherent meaning there like |
Whoops, I misunderstood your question. so it's not a JSON manifest file that is not being loaded, but the exemptions... let me think about why that could be. |
yea i send the path of yml file with rules to check in manifest cmd line argument and it seems to work as expected. The only problem is that it's no longer picking up the list of files to be exempt from rule checks (ie lams-exemptions.ndjson) |
Hmm actually right now i'm just testing my GHA from teh GHA repo. I'm not actually running the GHA in the Looker project repo in final implementation. So maybe that's the problem |
Will you attach or email me your run output? |
|
Yes, it will look for lams-exemptions.ndjson in the cwd directory by default. You can provide a different cwd as an argument or pass an explicit path to the exemptions with |
If there is a better place for this inquiry, i'm happy to move it over there.
Our Looker instance setup has multiple separate projects that are all imported to a central project.
All the Looker projects run LAMS via Github Actions. This is hard to maintain because each project defines the LAMS rules separately in their own
manifest.lkml
file. So if we want to update list of LAMS rules or add a custom one, we ask each Looker project repo owner to individually make updates in their respective repos.I was thinking maybe we could create a composite GHA for all Looker project repos to reference. And let's say the repo for this composite action contains the LAMS rule list/definitions. The question is how can I have this composite GHA run LAMS using the rules in action repo instead of the
manifest.lkml
file in the Looker project repo?The text was updated successfully, but these errors were encountered: