[update-versions.yml] Implement least privilege permissions (#429)

- Add empty permission set at workflow level
- Remove contents:write from job, add to GitHub App token
This commit is contained in:
gitclonebrian 2025-12-02 10:34:13 -05:00 committed by GitHub
parent 7cd468ea62
commit 9e57cafee3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,8 @@ name: Update Versions
on:
workflow_dispatch:
permissions: {}
jobs:
setup:
name: Setup
@ -101,7 +103,6 @@ jobs:
runs-on: ubuntu-24.04
needs: setup
permissions:
contents: write
id-token: write
steps:
- name: Log in to Azure
@ -127,6 +128,8 @@ jobs:
with:
app-id: ${{ steps.get-kv-secrets.outputs.BW-GHAPP-ID }}
private-key: ${{ steps.get-kv-secrets.outputs.BW-GHAPP-KEY }}
permission-contents: write
- name: Checkout Branch
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0