Skip to content

Commit

Permalink
ci: Restrict content permissions to harden GitHub Actions
Browse files Browse the repository at this point in the history
* Restrict content permissions to read. At the moment there are no
  steps to the changed workflows that use tokens, and so this is
  perventative if this ever changes.
* Extends PR 2483.
  • Loading branch information
matthewfeickert committed May 25, 2024
1 parent cdd404a commit 2d2d3b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
name: Build docs
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
lint:

Expand Down

0 comments on commit 2d2d3b8

Please sign in to comment.