Skip to content

Commit

Permalink
Enhance GitHub Actions with permissions and concurrency
Browse files Browse the repository at this point in the history
Added read permissions for contents, write permissions for pages,
and write permissions for id-token to the workflow. Introduced
a concurrency group for pages to manage concurrent deployments
without cancellations. These updates optimize security and
improve deployment reliability by controlling job concurrency.
  • Loading branch information
eliasjpr committed Aug 12, 2024
1 parent f27c71a commit b8632fe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/crystal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,15 @@ on:
pull_request:
branches: [master]

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
docs:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b8632fe

Please sign in to comment.