Skip to content

Commit 883356d

Browse files
authored
Merge pull request #93 from Azure/fix/workflow-action-versions
fix: add projen action overrides to prevent self-mutation with setup-java and setup-dotnet v4
2 parents a8988fc + f4b8dac commit 883356d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.projenrc.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ if (upgradeWorkflow) {
234234
);
235235
}
236236

237+
// Override GitHub Actions versions to v4 to prevent self-mutation issues
238+
// This ensures projen generates @v4 versions instead of @v3 defaults
239+
project.github?.actions.set("actions/setup-java", "actions/setup-java@v4");
240+
project.github?.actions.set("actions/setup-dotnet", "actions/setup-dotnet@v4");
241+
237242
// Add .gitignore entries
238243
project.gitignore.include("cdk.out");
239244
project.gitignore.exclude("cdktf.out");

0 commit comments

Comments
 (0)