You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Font Awesome Package Token Intermittent 401 Errors in CI/CD
We are experiencing an issue with the Font Awesome Package token, where we occasionally receive a 401 Unauthorized error. The issue occurs sporadically—sometimes our builds pass, but other times they fail due to this authentication error. The frequency of these failures has increased, and it is now disrupting our CI/CD pipeline. The strange thing is that it only happens from time to time, making it harder for us to find the cause.
Context
We have an active Font Awesome Pro subscription (Font Awesome Pro Standard).
Hey @ricardo-rumble . We use Cloudsmith to power the private repo npm.fontawesome.com. So let's try to get a support ticket in with them. Can you submit a ticket here: https://support.cloudsmith.com/hc/en-us/requests/new? I would reference this GitHub issue you created and mention that you are a Font Awesome customer.
Let me know if you run into problems and I'll try and help.
@ricardo-rumble I'm going to need some account information from you to proceed. Can you please send an email to [email protected] and let me know what your Font Awesome account email address is? If you can reference this issue in your email and ask for "Rob" that should do it. Thank you.
I've been in touch with someone at Cloudsmith, they saw this 401 Unauthorized also from their side.
It looks like the 401 error was caused by a recent update to the GitHub Actions runners, where Docker secrets were only passed to pnpm intermittently. We suspect this may have been due to parallel job execution.
As the issue became more noticeable over time, we believe it may have been triggered by a phased rollout on GitHub’s side, which led to the inconsistent behavior. We're not entirely sure of it, though.
We fixed it by adding required=true to the secrets mount in our Dockerfile, like so:
RUN --mount=type=secret,id=fontawesome_package_token,env=FONTAWESOME_PACKAGE_TOKEN,required=true \
pnpm -C ./${SUBDIR}/ install --prod --frozen-lockfile
That said, we still don’t fully understand the root cause. Our team also investigated Moby—the underlying component of Docker—to rule out any issues at that layer, but we couldn’t find anything suspicious there. The good news is that the issue has been resolved for now.
I hope that this could also help anyone else that has a similar issue with 401 Unauthorized in pnpm
Bug description
Font Awesome Package Token Intermittent 401 Errors in CI/CD
We are experiencing an issue with the Font Awesome Package token, where we occasionally receive a 401 Unauthorized error. The issue occurs sporadically—sometimes our builds pass, but other times they fail due to this authentication error. The frequency of these failures has increased, and it is now disrupting our CI/CD pipeline. The strange thing is that it only happens from time to time, making it harder for us to find the cause.
Context
FONTAWESOME_PACKAGE_TOKEN
secret is correctly configured in our repository. This token, retrieved from Font Awesome's account settings (https://fontawesome.com/account/general) under "Package Token," is added as secret within our repositories and used in our CI/CD pipelines..npmrc
ConfigurationGitHub Actions CI/CD Log
Observations
ERR_PNPM_FETCH_401
error has been occurring more frequently, making it increasingly frustrating and disruptive to our workflow.Something we thought of is that the 401 is actually a rate limit?
Would appreciate any insights or solutions to mitigate this issue!
Reproducible test case
No response
Screenshots
No response
Font Awesome version
v6.7.2
Serving
Kit
Implementation
SVG+JS
Browser and Operating System
Web bug report checklist
The text was updated successfully, but these errors were encountered: