Skip to content

Commit

Permalink
Merge pull request #197 from minijackson/actions-security
Browse files Browse the repository at this point in the history
GitHub actions security
  • Loading branch information
minijackson authored Nov 7, 2024
2 parents 3aab2bc + 8f27b85 commit 5317be2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/book-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:

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

# Only one concurrent deployment
concurrency:
Expand All @@ -19,6 +17,9 @@ concurrency:
jobs:
deploy:
if: "github.repository_owner == 'epics-extensions'"
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/editorconfig.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "Check EditorConfig"

permissions: read-all
permissions:
contents: read

on:
pull_request_target:
types: [opened, synchronize, reopened, edited]
pull_request:

jobs:
editorconfig:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: "Check Formatting"

permissions: read-all
permissions:
contents: read

on:
pull_request_target:
types: [opened, synchronize, reopened, edited]
pull_request:

jobs:
alejandra:
Expand Down

0 comments on commit 5317be2

Please sign in to comment.