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

actions-secret-parser: Invalid 'main' field in package.json #71

Open
tommyhtran opened this issue Dec 7, 2022 · 4 comments
Open

actions-secret-parser: Invalid 'main' field in package.json #71

tommyhtran opened this issue Dec 7, 2022 · 4 comments

Comments

@tommyhtran
Copy link

When running the azure/webapps-deploy@v2 action, I received the following error:

(node:2000) [DEP0128] DeprecationWarning: Invalid 'main' field in '/home/runner/work/_actions/azure/webapps-deploy/v2/node_modules/actions-secret-parser/package.json' of 'lib/index.js'. Please either fix that or report it to the module author

The configuration seems correct in this repository because /packages/secret-parser/tsconfig.json outputs into a /lib directory and the 'main' field in package.json is referencing that directory.

The problem is that the npm package actions-secret-parser is different from the configuration. index.js is in the root directory, the /lib directory does not exist. See https://www.npmjs.com/package/actions-secret-parser?activeTab=explore

@ctrlplusb
Copy link

I've just started to hit the same issue.

@molily
Copy link

molily commented Jan 27, 2023

Hi, does anyone know a way to work around this problem?

@StefanLobbenmeierObjego
Copy link

Supposedly this is already fixed and can be resolved in the action by bumping the version, see Azure/login#378

@StefanLobbenmeierObjego
Copy link

yeah the fix you suggested is in 4981bed

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

4 participants