Skip to content

Unable to publish artifacts after enabling gradle caching #754

Closed
@BelgianDev

Description

@BelgianDev

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.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions