Skip to content

Commit

Permalink
fix(CI): GitHub Action YAML Workflow now includes explicit allow-list…
Browse files Browse the repository at this point in the history
… of permissions for less permissive GITHUB_TOKEN
  • Loading branch information
danielweck committed Mar 21, 2024
1 parent 4e6d70c commit 30b4f27
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/deploy
Original file line number Diff line number Diff line change
@@ -1,7 +1,23 @@
name: Build with Hugo

on: [push, pull_request]


# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
actions: none
checks: none
contents: write
deployments: none
id-token: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none

jobs:
deploy:
runs-on: ubuntu-22.04
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/deploy_docsy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ on:
branches:
- main

# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
permissions:
actions: none
checks: none
contents: write
deployments: none
id-token: none
issues: none
packages: none
pages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand Down

0 comments on commit 30b4f27

Please sign in to comment.