Skip to content

Commit

Permalink
chore(build): restrict permissions of OAS publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
paullatzelsperger committed Mar 26, 2024
1 parent 80e1d28 commit b992e2e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/publish-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,9 @@ jobs:
publish-to-swaggerhub:
name: "Publish OpenAPI spec to Swaggerhub"
permissions:
contents: read
contents: write
packages: write
pages: write
needs: [ release-version ]
uses: ./.github/workflows/publish-openapi.yaml
secrets: inherit
5 changes: 4 additions & 1 deletion .github/workflows/publish-openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ on:
branches:
- main

permissions: write-all
permissions:
contents: write
packages: write
pages: write

jobs:
publish:
Expand Down

0 comments on commit b992e2e

Please sign in to comment.