Skip to content

Add read permissions for contents in CI jobs (private repos)#125

Merged
marko-stanojevic merged 1 commit intomainfrom
fix/permissions
Feb 5, 2026
Merged

Add read permissions for contents in CI jobs (private repos)#125
marko-stanojevic merged 1 commit intomainfrom
fix/permissions

Conversation

@marko-stanojevic
Copy link
Contributor

Description

This pull request makes updates to the GitHub Actions workflow configuration in .github/workflows/ci.yml to explicitly set the contents: read permission for several jobs. This change clarifies and tightens the permissions required by the workflow, aligning with GitHub's best practices for security.

Workflow permissions updates:

  • Added contents: read permission to the dependencies job to ensure it only has the necessary access to repository contents.
  • Added contents: read permission to the test job matrix, improving security by limiting repository content access.
  • Added contents: read permission to the lint job, following least-privilege principles.
  • Added contents: read permission to the build job, ensuring only required permissions are granted.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Code quality improvement (refactoring, tests, performance)

@github-actions github-actions bot added ci-cd Github configuration files github bugfix Bug fix labels Feb 5, 2026
@marko-stanojevic marko-stanojevic merged commit 0985eeb into main Feb 5, 2026
9 checks passed
@marko-stanojevic marko-stanojevic deleted the fix/permissions branch February 5, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Bug fix ci-cd Github configuration files github

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant