зеркало из https://github.com/Azure/ALZ-Bicep.git
Adjust permission scopes (#898)
This commit is contained in:
Родитель
3712548faf
Коммит
1618d0f490
|
@ -15,7 +15,6 @@ jobs:
|
||||||
bicep_unit_tests:
|
bicep_unit_tests:
|
||||||
name: Bicep Build & Lint All Modules
|
name: Bicep Build & Lint All Modules
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
||||||
|
@ -117,7 +116,6 @@ jobs:
|
||||||
azure_waf:
|
azure_waf:
|
||||||
name: Test Azure Well-Architected Framework (PSRule)
|
name: Test Azure Well-Architected Framework (PSRule)
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
||||||
|
|
|
@ -17,9 +17,7 @@ jobs:
|
||||||
statuses: write # for github/super-linter to mark status of each linter run
|
statuses: write # for github/super-linter to mark status of each linter run
|
||||||
name: Lint code base
|
name: Lint code base
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
||||||
with:
|
with:
|
||||||
|
@ -51,7 +49,6 @@ jobs:
|
||||||
markdown-link-check:
|
markdown-link-check:
|
||||||
name: Markdown Link Check
|
name: Markdown Link Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
||||||
|
|
|
@ -19,11 +19,13 @@ env:
|
||||||
github_pr_repo: ${{ github.event.pull_request.head.repo.full_name }}
|
github_pr_repo: ${{ github.event.pull_request.head.repo.full_name }}
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
arm_docs:
|
arm_docs:
|
||||||
name: Generate Markdown
|
name: Generate Markdown
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
|
|
|
@ -9,11 +9,13 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
name: Generate Accelerator Release Artifacts
|
name: Generate Accelerator Release Artifacts
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
|
|
|
@ -2,7 +2,6 @@ name: Unit Tests - Scheduled Bicep Build
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
issues: write
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
|
@ -13,6 +12,8 @@ jobs:
|
||||||
bicep_unit_tests:
|
bicep_unit_tests:
|
||||||
name: Bicep Build & Lint All Modules
|
name: Bicep Build & Lint All Modules
|
||||||
if: github.repository == 'Azure/ALZ-Bicep'
|
if: github.repository == 'Azure/ALZ-Bicep'
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -29,7 +29,6 @@ jobs:
|
||||||
# Uncomment the permissions below if installing in a private repository.
|
# Uncomment the permissions below if installing in a private repository.
|
||||||
# contents: read
|
# contents: read
|
||||||
# actions: read
|
# actions: read
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Harden Runner
|
- name: Harden Runner
|
||||||
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
||||||
|
|
Загрузка…
Ссылка в новой задаче