Skip to content

ci: explicit permission in actions #3411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
branches:
- develop

permissions:
contents: read

jobs:
test:
name: Test
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/deploy-check.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Check Deploy

on:
pull_request_target:
pull_request:
types:
- opened
- reopened
Expand All @@ -10,6 +10,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
check:
if: github.head_ref != 'develop'
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
- 'package.json'
- 'scripts/**'

permissions:
contents: write

jobs:
pack:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mirror-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
required: true
type: string

permissions:
contents: read

jobs:
mirror:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ on:
- submitted
workflow_dispatch:

permissions:
contents: read

jobs:
setup:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pg-prove.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Publish pg_prove
on:
workflow_dispatch:

permissions:
contents: read

jobs:
settings:
runs-on: ubuntu-latest
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/publish-migra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ name: Publish migra
on:
workflow_dispatch:

permissions:
contents: read

jobs:
settings:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -70,9 +73,9 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Merge multi-arch manifests
run: |
docker buildx imagetools create -t ${{ needs.settings.outputs.image_tag }} \
${{ needs.settings.outputs.image_tag }}_amd64 \
${{ needs.settings.outputs.image_tag }}_arm64
docker buildx imagetools create -t "${{ needs.settings.outputs.image_tag }}" \
"${{ needs.settings.outputs.image_tag }}_amd64" \
"${{ needs.settings.outputs.image_tag }}_arm64"

publish:
needs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- develop
workflow_dispatch:

permissions:
contents: write

jobs:
release:
name: semantic-release
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
workflow_call:

permissions:
contents: write
packages: write

jobs:
settings:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tag-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
required: true
type: string

permissions:
contents: read

jobs:
tag:
name: Move latest tag
Expand Down
Loading