Skip to content

Commit

Permalink
Update some permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbillion committed Dec 10, 2024
1 parent 13c5538 commit b24c2bf
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 13 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ on:
- 'docker-compose.yml'
workflow_dispatch:

permissions:
contents: read
permissions: {}

jobs:
test:
name: WP ${{ matrix.wp }}
permissions:
contents: read
strategy:
# See the following for PHP compatibility of WordPress versions:
# https://make.wordpress.org/core/handbook/references/php-compatibility-and-wordpress-versions/
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ on:
- 'release'
workflow_dispatch:

permissions:
contents: write
permissions: {}

jobs:
build:
name: Build
permissions:
contents: write
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-build.yml@trunk
with:
node: false
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@ on:
- 'phpstan.neon.dist'
workflow_dispatch:

permissions:
contents: read
permissions: {}

jobs:
test:
name: ${{ matrix.label }}
permissions:
contents: read
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-coding-standards.yml@trunk
strategy:
matrix:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/deploy-assets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ on:
branches:
- deploy

permissions:
contents: read
permissions: {}

jobs:
wordpress:
name: WordPress.org
permissions:
contents: read
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-deploy-assets.yml@trunk
with:
node: false
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/deploy-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ on:

concurrency: WordPress.org

permissions:
attestations: write
contents: read
id-token: write
issues: write
permissions: {}

jobs:
deploy:
Expand All @@ -34,6 +30,7 @@ jobs:
secrets:
WPORG_SVN_USERNAME: ${{ secrets.WPORG_SVN_USERNAME }}
WPORG_SVN_PASSWORD: ${{ secrets.WPORG_SVN_PASSWORD }}

attest:
name: Generate attestation
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,13 @@ on:
- '.github/workflows/nightly-tests.yml'
workflow_dispatch:

permissions: {}

jobs:
acceptance:
name: Nightly ${{ matrix.label }}
permissions:
contents: read
strategy:
matrix:
label:
Expand Down

0 comments on commit b24c2bf

Please sign in to comment.