[bug] Maven / Gradle builders fail to run concurrently #2662
Labels
area:gradle
Issue related to the gradle builder
area:maven
Issue related to maven
type:bug
Something isn't working
Milestone
If two jobs within the same workflow run the Maven builder, e.g. on two projects hosted on the same repo, the target folders will have a name collision, due to lack of randomization in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/gradle/action.yml#L120-L123 and similarly in https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/maven/action.yml#L108-L111
The artifact name (not the name on disk) needs to be randomized, as in
https://github.com/slsa-framework/slsa-github-generator/blob/main/internal/builders/nodejs/action.yml#L84-L94
This requires an update to:
NOTE: The nodejs builder has the relevant code as example.
The text was updated successfully, but these errors were encountered: