Skip to content

Add explicit permissions to GitHub workflows#2723

Merged
labkey-tchad merged 5 commits intodevelopfrom
fb_workflowPermissions
Oct 6, 2025
Merged

Add explicit permissions to GitHub workflows#2723
labkey-tchad merged 5 commits intodevelopfrom
fb_workflowPermissions

Conversation

@labkey-tchad
Copy link
Member

Rationale

Cleaning up several security warnings.
We should validate that the workflow permission changes work correctly before we roll out to other repositories.

Related Pull Requests

  • N/A

Changes

  • Add explicit permissions to GitHub workflows
  • Fix ZipSlip in TestFileUtils
  • Explicitly cast numbers

{
final File outputFile = new File(outputDir, entry.getName());

if (!outputFile.toPath().normalize().startsWith(outputDir.toPath()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should prevent the zip slip concern, but probably best to stash outputDir.toPath().normalize() outside the loop and use that.

@labkey-jeckels
Copy link
Contributor

@labkey-tchad what steps in the merge/release process will end up testing the workflow permissions?

@labkey-tchad
Copy link
Member Author

@labkey-tchad what steps in the merge/release process will end up testing the workflow permissions?

The next time we merge changes forward from 25.10 should verify them both.

@labkey-jeckels
Copy link
Contributor

@labkey-tchad what steps in the merge/release process will end up testing the workflow permissions?

The next time we merge changes forward from 25.10 should verify them both.

@labkey-klum heads up on this change. Hopefully it won't have any impact on the merge process, but if you see problems with testAutomation, let us know

@labkey-tchad labkey-tchad merged commit 3cb43f3 into develop Oct 6, 2025
6 checks passed
@labkey-tchad labkey-tchad deleted the fb_workflowPermissions branch October 6, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants