Skip to content

Commit

Permalink
build: explicitly set permissions for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Planeshifter committed Dec 6, 2023
1 parent b1cfcb4 commit 1eff72c
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/run_affected_benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ on:
# List paths for which changes should trigger this workflow:
- 'lib/**/benchmark/**'

# Global permissions:
permissions:
# Allow read-only access to the repository contents:
contents: read

# Workflow jobs:
jobs:

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/run_affected_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ on:
# List paths for which changes should trigger this workflow:
- 'lib/**/examples/**'
- 'lib/**/README.md'

# Global permissions:
permissions:
# Allow read-only access to the repository contents:
contents: read

# Workflow jobs:
jobs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/run_affected_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ on:
directories:
description: 'List of changed directories for which to run affected tests (space separated):'

# Global permissions:
permissions:
# Allow read-only access to the repository contents:
contents: read

# Workflow jobs:
jobs:

Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/run_tests_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ on:
directories:
description: 'List of changed directories for which to run tests (space separated):'

# Global permissions:
permissions:
# Allow read-only access to the repository contents:
contents: read

# Workflow jobs:
jobs:

Expand Down

0 comments on commit 1eff72c

Please sign in to comment.