Skip to content

Commit

Permalink
Merge pull request #52 from nowsprinting/chore/fix_workflow_permissions
Browse files Browse the repository at this point in the history
Fix permissions and enable bash pipefail option
  • Loading branch information
nowsprinting authored Dec 1, 2024
2 parents e643ca8 + f657425 commit 25e3b78
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ on:
paths:
- .github/workflows/**

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

permissions: {}

defaults:
run:
shell: bash

jobs:
actionlint:
runs-on: ubuntu-latest
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
DIFF_PDF_VERSION: 'v0.5.2'
permissions: {}

defaults:
run:
shell: bash

jobs:
build-and-push-docker-image:
Expand All @@ -24,6 +27,8 @@ jobs:
permissions:
contents: read
packages: write
env:
DIFF_PDF_VERSION: 'v0.5.2'

steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ on:
- .github/workflows/hadolint.yml
- Dockerfile

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

permissions: {}

defaults:
run:
shell: bash

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

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

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 @@ -10,6 +10,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
10 changes: 10 additions & 0 deletions .github/workflows/shellcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ on:
- .github/workflows/shellcheck.yml
- '**.sh'

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

permissions: {}

defaults:
run:
shell: bash

jobs:
shellcheck:
runs-on: ubuntu-latest
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions: {}

defaults:
run:
shell: bash

jobs:
test:
runs-on: ubuntu-latest
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/update-major.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ on:
tags:
- 'v*'

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

permissions: {}

defaults:
run:
shell: bash

jobs:
update-major:
if: github.repository_owner == 'nowsprinting' # Skip on forked repo
Expand Down

0 comments on commit 25e3b78

Please sign in to comment.