Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Adjust permission scopes #898

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .github/workflows/bicep-build-to-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ jobs:
bicep_unit_tests:
name: Bicep Build & Lint All Modules
runs-on: ubuntu-latest

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
Expand Down Expand Up @@ -117,7 +116,6 @@ jobs:
azure_waf:
name: Test Azure Well-Architected Framework (PSRule)
runs-on: ubuntu-latest

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ jobs:
statuses: write # for github/super-linter to mark status of each linter run
name: Lint code base
runs-on: ubuntu-latest

steps:

- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
Expand Down Expand Up @@ -51,7 +49,6 @@ jobs:
markdown-link-check:
name: Markdown Link Check
runs-on: ubuntu-latest

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/psdocs-mdtogit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ env:
github_pr_repo: ${{ github.event.pull_request.head.repo.full_name }}

permissions:
contents: write
contents: read

jobs:
arm_docs:
name: Generate Markdown
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Harden Runner
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ on:
- main

permissions:
contents: write
contents: read

jobs:
release:
name: Generate Accelerator Release Artifacts
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Harden Runner
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/scheduled-bicep-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Unit Tests - Scheduled Bicep Build

permissions:
contents: read
issues: write

on:
schedule:
Expand All @@ -13,6 +12,8 @@ jobs:
bicep_unit_tests:
name: Bicep Build & Lint All Modules
if: github.repository == 'Azure/ALZ-Bicep'
permissions:
issues: write
runs-on: ubuntu-latest

steps:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
# Uncomment the permissions below if installing in a private repository.
# contents: read
# actions: read

steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
Expand Down
Loading