Skip to content

Conversation

@SiarheiSalimau
Copy link

@SiarheiSalimau SiarheiSalimau commented Jan 28, 2026

Resolves PFM-TASK-7221

changelog: Frontend-Core: [PFM-TASK-7221] Functionality: Restrict GitHub Actions workflow permissions to follow least-privilege principle [PR github-actions#116]

Summary

  • Replace overly permissive write-all permissions with specific required permissions across all GitHub Actions workflow files
  • Follow security best practices and the principle of least privilege
  • Improve repository security rating by limiting workflow permissions to only what is needed

Affected Workflows

Workflow Templates (permissions: write-all → specific permissions)

  • .github/workflow-templates/fe/fe-check-upmerge.yml
  • .github/workflow-templates/fe/fe-cleanup-snapshots.yml
  • .github/workflow-templates/fe/fe-licenses.yml
  • .github/workflow-templates/fe/fe-main.yml
  • .github/workflow-templates/fe/fe-pr-close.yml
  • .github/workflow-templates/fe/fe-pr-snapshot.yml
  • .github/workflow-templates/fe/fe-pr.yml
  • .github/workflow-templates/fe/fe-release.yml
  • .github/workflow-templates/fe/fe-tag-pushed.yml

Developer Checklist:

  • Updated documentation if needed
  • Created Changelog according to Guidelines

Replace overly permissive 'write-all' with specific permissions
(contents, pull-requests, actions, checks) to follow security best
practices and improve security rating.

Affected files:
- .github/workflow-templates/fe/fe-check-upmerge.yml
- .github/workflow-templates/fe/fe-cleanup-snapshots.yml
- .github/workflow-templates/fe/fe-licenses.yml
- .github/workflow-templates/fe/fe-main.yml
- .github/workflow-templates/fe/fe-pr-close.yml
- .github/workflow-templates/fe/fe-pr-snapshot.yml
- .github/workflow-templates/fe/fe-pr.yml
- .github/workflow-templates/fe/fe-release.yml
- .github/workflow-templates/fe/fe-tag-pushed.yml
jobs:
check-upmerge:
uses: collaborationFactory/github-actions/.github/workflows/fe-check-upmerge.yml@release/26.1
uses: collaborationFactory/github-actions/.github/workflows/fe-check-upmerge.yml@feature/PFM-TASK-7221-Restrict-GitHub-Actions-Workflow-Permissions
Copy link
Contributor

Choose a reason for hiding this comment

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

Use release/26.1 instead of feature branch. Same in all files in this PR

Copy link
Author

Choose a reason for hiding this comment

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

done by revert commit

Copy link
Contributor

@slaven3kopic slaven3kopic left a comment

Choose a reason for hiding this comment

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

check my comment

@SiarheiSalimau SiarheiSalimau merged commit 9d72ce4 into release/26.1 Feb 3, 2026
@SiarheiSalimau SiarheiSalimau deleted the feature/PFM-TASK-7221-Restrict-GitHub-Actions-Workflow-Permissions branch February 3, 2026 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants