Skip to content

Commit

Permalink
[Code Scan] Refine GitHub Actions Workflow Permissions for Enhanced S…
Browse files Browse the repository at this point in the history
…ecurity (#4647)

* Update trigger_onebranch_ci.yml

* Update benchmark-action.yml
  • Loading branch information
gladjohn authored and pmaytak committed Apr 9, 2024
1 parent e2c00d5 commit 5a48b79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/benchmark-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ on:
- src/client/Microsoft.Identity.Client/**/*.cs

permissions:
# Deployments permission to deploy GitHub pages website
deployments: write
# Contents permission to update benchmark contents in gh-pages branch
contents: write
contents: read

jobs:
benchmark:
permissions:
contents: write # Elevate permissions specifically for this job
name: Run performance benchmarks
runs-on: ubuntu-latest
steps:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/trigger_onebranch_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
build:
name: Call OneBranch ADO Pipeline (CI)
Expand Down

0 comments on commit 5a48b79

Please sign in to comment.