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

install-application action fails with "File not found" error #515

Open
parvezghumra opened this issue Jan 23, 2024 · 7 comments
Open

install-application action fails with "File not found" error #515

parvezghumra opened this issue Jan 23, 2024 · 7 comments
Assignees

Comments

@parvezghumra
Copy link

The error is as follows:

image

This looks to caused by the fact that the 'install-application' folder is not present under /dist/actions. Running the corresponding PAC CLI command locally works as expected. So I feel this is to do with the packaging/distribution of the Github Actions.

@snizar007
Copy link

@petrochuk - Can you take a look into this?

@tehcrashxor
Copy link
Member

Hmm. It's explicitly listed as a skipped task here in the gulpfile.mjs.
That change was introduced in September 2022 via #242, with the reason given in the PR as:

disabling/skipping the 'install-application' task until the sporadic 403 issue is fixed by the EnvMgmt team

@parvezghumra
Copy link
Author

Thanks @tehcrashxor @snizar007.

Interestingly, when I tried to invoke the PAC CLI directly within the Github runner rather than attempting to use this action (as an interim workaround), I am receiving 403 errors every time if the command attempts to install the application. As you see in this screenshot:

image

But if I run the command locally it works as expected occasionally and fails with the same error sometimes. Same environment, same authentication mechanism and credentials, same version of the PAC CLI:

image

@tehcrashxor Is this the same 403 issue you're referring to in your comment above?

@tehcrashxor
Copy link
Member

Is this the same 403 issue you're referring to in your comment above?

Not sure if it's the same issue as when it was first disabled, but we're looking into it.

Same environment, same authentication mechanism and credentials, same version of the PAC CLI

Just to make sure we cover all the bases on difference between GH Runners and your local machine:

  • Did you use a normal user, or a Service Principal?
  • Is the Github runner using a Windows or Linux agent?

@parvezghumra
Copy link
Author

@tehcrashxor

Using a normal user, I couldn't get the command to work at all with a Service Principal

And so far I've only tested this on a Linux agent

@snizar007
Copy link

@parvezghumra - any update on this?
If you no longer have this issue, shall we close this?

@parvezghumra
Copy link
Author

@snizar007 What update were you expecting from me? @tehcrashxor mentioned above that they were still looking into this

Ultimately we need the github action to be able to install applications as expected. We shouldn't need to fall back to workarounds using the PAC CLI

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