question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auth not being picked up correctly in GitHub Action using Artifactory and self hosted runners

See original GitHub issue

Describe the bug

I’m trying to validate a canary release that is running on a self hosted runner which pulls dependencies from a private Artifactory npm registry and then subsequently publishes a package back to it, all through a GitHub action that is on a self hosted runner. Everything seems to be working correctly except the publish step itself, and I’m seeing the following:

Screen Shot 2021-03-19 at 10 11 08 AM

Subsequently, further down:

Screen Shot 2021-03-19 at 10 11 53 AM

I don’t necessarily have access to the runner environment as that is managed by our ops team but I have verified the following:

  • The action runs in /home/ubuntu/actions-runner/_work/fe-ui/fe-ui
  • The .npmrc file seems to be updated with the token entry correctly
    • //artifactory.internal.livongo.com/artifactory/api/npm/npm-repository/:_authToken=${NPM_TOKEN}
  • The .npmrc file that is being updated with the above token lives inside of /home/ubuntu/.npmrc

To Reproduce

Expected behavior

Screenshots

Environment information:


Additional context

I would love to provide any additional info but I don’t have much more to go off of. WHat can I do to add additional details that may help resolve this?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
reintroducingcommented, Mar 22, 2021

@hipstersmoothie Thank you for being patient while we figured this out.

1reaction
hipstersmoothiecommented, Mar 19, 2021

Yeah I’m fine with that. If you come up with some good artifactory setup step we can add it to the docs too

Read more comments on GitHub >

github_iconTop Results From Across the Web

self-hosted organization runner does not pick up jobs #831
Describe the bug The organization-wide self-hosted runner does not pick up jobs. Note, that repository self-hosted runners work ok.
Read more >
sbt not picking up artifactory credentials in Github Actions
I am trying to migrate from SaaS artifactory to OSS self-hosted instance in EKS. I have finished the setup, and while my tests...
Read more >
NuGet Repositories - JFrog - JFrog Documentation
The ability to provision NuGet packages from Artifactory to NuGet ... It is up to the developer to correctly deploy packages into the ......
Read more >
Enabling GitHub Actions on Enterprise Server - Robs blog
Actions org will be cleaned up with each major/minor update; Mismatches in the settings UI (harder for admins); Dependabot runners need to be...
Read more >
GitHub Actions, Maven & Artifactory - DEV Community ‍ ‍
I recently started a new Proof of Concept that started with a single repo in GitHub and built using G... Tagged with githubactions,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found