Skip to content

Commit

Permalink
Set permissions for github workflows (openvinotoolkit#2127)
Browse files Browse the repository at this point in the history
add top level permissions to github workflows
  • Loading branch information
djdameln authored Jun 13, 2024
1 parent 41d8cf9 commit 22caf3b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/code_scan.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Code Scanning
permissions: read-all

on:
workflow_dispatch: # run on request (no need for PR)
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre_merge.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Pre-Merge Checks
permissions: read-all

on:
push:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Upload Python Package
permissions: read-all

on:
release:
types: [published]
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/upload_coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: Upload coverage
permissions: read-all

on:
workflow_run:
workflows: ["Pre-Merge Checks"]
Expand Down

0 comments on commit 22caf3b

Please sign in to comment.