Skip to content

Commit

Permalink
Set top-level permissions for workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
oZakari committed Nov 13, 2024
1 parent 60c25be commit f76b6e5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/bicep-build-to-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
- "**/bicepconfig.json"
workflow_dispatch: {}

permissions:
contents: read

jobs:
bicep_unit_tests:
name: Bicep Build & Lint All Modules
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/gh-ado-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
issue_comment:
types: [created]

permissions:
contents: read

jobs:
alert:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- main
workflow_dispatch: {}

permissions:
contents: read

jobs:
release-tests:
name: Pre-Release Tests
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/scheduled-bicep-build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
name: Unit Tests - Scheduled Bicep Build

permissions:
contents: read

on:
schedule:
- cron: "0 8 * * 1-5"
workflow_dispatch: {}

permissions:
contents: read

jobs:
bicep_unit_tests:
name: Bicep Build & Lint All Modules
Expand Down

0 comments on commit f76b6e5

Please sign in to comment.