Skip to content

Commit

Permalink
Add permission token at topLevel in workflows (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maciek Gołaszewski authored Nov 20, 2024
1 parent aa6c32a commit 7314175
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/automatic-doc-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ name: Core Documentation Checks
on:
- workflow_dispatch

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
documentation-checks:
uses: canonical/documentation-workflows/.github/workflows/documentation-checks.yaml@main
with:
working-directory: 'docs/moonray'

- uses: canonical/documentation-workflows/.github/workflows/documentation-checks.yaml@main
with:
working-directory: 'docs/moonray'
2 changes: 2 additions & 0 deletions .github/workflows/docs-spelling-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
# pull_request:
# paths:
# - 'docs/**'
permissions:
contents: read

jobs:
spell-check:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/sync-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Sync upstream images to ghcr.io
on:
workflow_dispatch:

permissions:
contents: read

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

0 comments on commit 7314175

Please sign in to comment.