Skip to content

Commit

Permalink
Fix permissions and enable bash pipefail option
Browse files Browse the repository at this point in the history
  • Loading branch information
nowsprinting committed Oct 26, 2024
1 parent 0afee1a commit b903707
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ on:
paths:
- .github/workflows/**

permissions: {}

defaults:
run:
shell: bash

jobs:
actionlint:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ name: Create release pull request
on:
workflow_dispatch:

permissions: {}

defaults:
run:
shell: bash

jobs:
create-release-pr:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/metacheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
pull_request:
types: [ opened, synchronize, reopened ] # Same as default

permissions: {}

defaults:
run:
shell: bash

jobs:
meta-check:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ on:
pull_request:
types: [ opened ]

permissions: {}

defaults:
run:
shell: bash

jobs:
pr-labeler:
if: github.event.pull_request.head.repo.fork == false # Skip on public fork
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

defaults:
run:
shell: bash

jobs:
release-drafter:
if: github.repository_owner == 'nowsprinting' # Skip on forked repo
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ on:
paths:
- package.json

permissions: {}

defaults:
run:
shell: bash

jobs:
check-bump-version:
if: github.repository_owner == 'nowsprinting' # Skip on forked repo
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

defaults:
run:
shell: bash

jobs:
test:
if: github.event.pull_request.head.repo.fork == false # Skip on public fork, because can not read secrets.
Expand Down

0 comments on commit b903707

Please sign in to comment.