Skip to content

Commit

Permalink
ci(workflows): add minimal permissions to coverage workflow
Browse files Browse the repository at this point in the history
Defined explicit permissions for contents as read-only in the coverage workflow. This change addresses SSF recommendations by ensuring the GitHub Actions token only has the necessary permissions to perform code coverage analysis. Reduces security exposure by adhering to the principle of least privilege.
  • Loading branch information
JRocabruna authored Nov 15, 2024
1 parent 99c0d6f commit 4abc1d6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ on:
release:
types: [published, prereleased]
workflow_dispatch:


permissions:
contents: read

jobs:
publish:
name: Upload release to PyPI
Expand Down

0 comments on commit 4abc1d6

Please sign in to comment.