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

CUSTOM_REPOLINT_FILE not respected #2

Closed
craigez opened this issue Sep 18, 2020 · 1 comment
Closed

CUSTOM_REPOLINT_FILE not respected #2

craigez opened this issue Sep 18, 2020 · 1 comment

Comments

@craigez
Copy link

craigez commented Sep 18, 2020

Hi,

Thanks for putting this together! Much appreciated.

I don't think the CUSTOM_REPOLINT_FILE environment variable is respected by the underlying repolinter code in the way you are expecting. I tested this here: craigez/license-text-normalizer-js#1

When I don't set CUSTOM_REPOLINT_FILE ENV variable the repolint.json you have included in the action repository is run. When I specify CUSTOM_REPOLINT_FILE, repolinter picks up the default rules set in repolinter installation, not my custom ruleset in my repository. Where you expecting repolinter to do something with the Environment variable?

I was looking at this as part of the Todogroup activities. We are working out the best way path forward to support a GitHub action for repolinter as part of Todogroup activities. We were looking at both your action and the one from newrelic: https://github.com/newrelic/repolinter-action. It seems this is a subset of the newrelic functionality. Though, the docker approach taken here has advantages as the ruby dependencies could be installed (licensee and linguist). (As an aside, if you move the npm install into the Dockerfile I think GitHub Actions will cache the container image and reduce the runtime of the action).

FYI: we are currently reviewing a large PR to repolinter from newrelic: todogroup/repolinter#174

Regards,
Craig

@JeroenKnoops
Copy link
Member

We like immutable build pipelines, and that's why this github action is created.
I think this should be part of the Todogroup activities, so feel free to be inspired by this code.

If it is available as an official Todogroup action, I will deprecate this action.

Meanwhile I will take a look at the CUSTOM_REPOLINT_FILE parameter.

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

2 participants