install-application action fails with "File not found" error
The error is as follows:
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.
@petrochuk - Can you take a look into this?
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
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:
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:
@tehcrashxor Is this the same 403 issue you're referring to in your comment above?
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?
@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
@parvezghumra - any update on this? If you no longer have this issue, shall we close this?
@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