summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoyce <joycebrumu.u@gmail.com>2023-03-18 13:25:16 -0300
committerJason R. Coombs <jaraco@jaraco.com>2023-03-18 12:25:57 -0400
commit109f8c09ddb4904dc3f83307473520b2250ccb30 (patch)
treea2303e8f78f5e64a8c9d2a7a80e2df082c1399dd
parent56cdf46aa19450d58b4a56af6553a0225762ae4b (diff)
downloadpython-setuptools-git-109f8c09ddb4904dc3f83307473520b2250ccb30.tar.gz
Feat: initial permissions to main.yml (jaraco/skeleton#76)
Signed-off-by: Joyce <joycebrumu.u@gmail.com>
-rw-r--r--.github/workflows/main.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 9629a26a..3fa1c81e 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -2,6 +2,9 @@ name: tests
on: [push, pull_request]
+permissions:
+ contents: read
+
env:
# Environment variables to support color support (jaraco/skeleton#66):
# Request colored output from CLI tools supporting it. Different tools
@@ -104,6 +107,8 @@ jobs:
jobs: ${{ toJSON(needs) }}
release:
+ permissions:
+ contents: write
needs:
- check
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')