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

Unable to publish artifacts after enabling gradle caching #754

Open
2 of 5 tasks
BelgianDev opened this issue Feb 17, 2025 · 1 comment
Open
2 of 5 tasks

Unable to publish artifacts after enabling gradle caching #754

BelgianDev opened this issue Feb 17, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@BelgianDev
Copy link

Description:
I enabled gradle caching in the setup java task for my action, first publishing worked nothing weird. But after changing code and wanting to make a new snapshot build of one of my libs it won't publish I constantly get a Received status code 403 from server: Forbiddenno matter what I do even disabling the caching won't make the issue go away.

I'm publishing to a self-hosted repo even after providing administrator permissions on Nexus the action was only able to publish 2 files before getting a 403 forbidden.

This issue does not happen when I publish from my own computer it only happens when running in the GitHub action.
I'm still not sure a 100% if the caching is at fault or something else but I've been fighting for over a week and can't seem to fix the issue.

Task version:
actions/setup-java@v4

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Repro steps:

  1. Create a simple action to publish libraries to a Nexus Repository or any repository. (Here is Mine)
  2. In the workflow enable gradle caching.
  3. Publish artifacts (Works as expected)
  4. Make changes for a new commit
  5. Publish artifacts -> Fails, server returns a 403 error.
  6. Disable caching and recommit
  7. Republish failed artifacts -> Still fails.

Expected behavior:
That I will be able to publish my artifacts

Actual behavior:
A description of what is actually happening.

@BelgianDev BelgianDev added bug Something isn't working needs triage labels Feb 17, 2025
@aparnajyothi-y
Copy link
Contributor

Hello @BelgianDev, Thank you for creating this issue and we will look into it :)

@priya-kinthali priya-kinthali self-assigned this Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants