Skip to content

Commit bbbe7ed

Browse files
authored
Set Workflow Permissions (#62)
## Describe your changes Defining permissions for workflows ## Issue ticket number and link https://github.com/Bayer-Group/react-color-a11y/security/code-scanning/13 https://github.com/Bayer-Group/react-color-a11y/security/code-scanning/14 https://github.com/Bayer-Group/react-color-a11y/security/code-scanning/15 https://github.com/Bayer-Group/react-color-a11y/security/code-scanning/16 ## Checklist before requesting a review - [x] I have performed a self-review of my code - [x] If it is a core feature, I have added thorough tests.
1 parent 5ecc068 commit bbbe7ed

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/pr-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
pull_request:
55
branches: [main]
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
711
jobs:
812
run-tests:
913
runs-on: ubuntu-latest

.github/workflows/publish-new-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
711
jobs:
812
run-tests:
913
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)