Skip to content

Commit

Permalink
[CI] Add top-level/run-level permissions (#560)
Browse files Browse the repository at this point in the history
Signed-off-by: Yilong Guo <yilong.guo@intel.com>
  • Loading branch information
Nuullll authored Jan 14, 2025
1 parent 60df7bc commit 82a1258
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/patch-release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Generate patch releases

permissions:
contents: read

on:
workflow_dispatch:
schedule:
Expand Down Expand Up @@ -37,6 +40,9 @@ jobs:
| xargs -0 -d"\n" printf 'branches_json={"branch":[%s]}' \
>> $GITHUB_OUTPUT
release:
permissions:
# required by softprops/action-gh-release to create a release
contents: write
runs-on: ubuntu-latest
needs: setup
strategy:
Expand Down

0 comments on commit 82a1258

Please sign in to comment.