mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-07-22 12:37:53 +00:00
fix: Add permissions for pull request creation in coverage-badge workflow (#2832)
# What does this PR do? The workflow that automatically creates a PR to update the Coverage Badge fails as the `GITHUB_TOKEN` doesn't have write permissions. As opposed to providing write permissions to the token, we can provide the permissions for just this workflow with this PR.
This commit is contained in:
parent
28956f9447
commit
56269245c2
1 changed files with 3 additions and 0 deletions
3
.github/workflows/coverage-badge.yml
vendored
3
.github/workflows/coverage-badge.yml
vendored
|
@ -15,6 +15,9 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
unit-tests:
|
unit-tests:
|
||||||
|
permissions:
|
||||||
|
contents: write # for peter-evans/create-pull-request to create branch
|
||||||
|
pull-requests: write # for peter-evans/create-pull-request to create a PR
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue