Skip to content

Commit

Permalink
Update permissions at top level and add environment
Browse files Browse the repository at this point in the history
  • Loading branch information
oZakari committed Nov 15, 2024
1 parent 1618d0f commit 930011f
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 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
1 change: 1 addition & 0 deletions .github/workflows/psdocs-mdtogit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
permissions:
contents: write
runs-on: ubuntu-latest
environment: BicepUpdateDocumentation
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
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
6 changes: 3 additions & 3 deletions .github/workflows/scheduled-bicep-build.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
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 930011f

Please sign in to comment.