Skip to content
Merged
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
7 changes: 7 additions & 0 deletions .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ on:
# Allow manually triggering the workflow.
workflow_dispatch:

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
Expand All @@ -31,6 +35,9 @@ jobs:
checkcs:
name: 'Check code style'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read # Required to clone the repo.

steps:
- name: Checkout code
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ on:
- main
pull_request:

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
test:
name: End-to-end Tests
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read # Required to clone the repo.

steps:
- name: Checkout repository
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/mysql-parser-extension-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,17 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
extension-tests:
name: PHP ${{ matrix.php }} / ${{ matrix.coverage }} / ubuntu-latest
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read # Required to clone the repo.
strategy:
fail-fast: false
matrix:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/mysql-proxy-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ on:
- main
pull_request:

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
test:
name: MySQL Proxy Tests
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read # Required to clone the repo.

steps:
- name: Checkout repository
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/phpunit-tests-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ on:
env:
LOCAL_PHP: ${{ inputs.php }}-fpm

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
phpunit-tests:
name: ${{ inputs.os }}
runs-on: ${{ inputs.os }}
timeout-minutes: 20
permissions:
contents: read # Required to clone the repo.

steps:
- name: Checkout repository
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/phpunit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,16 @@ on:
- main
pull_request:

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
test:
name: PHP ${{ matrix.php }} / SQLite ${{ matrix.sqlite || 'latest' }}
uses: ./.github/workflows/phpunit-tests-run.yml
permissions:
contents: read
contents: read # Required to clone the repo.
secrets: inherit
strategy:
fail-fast: false
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/publish-wasm-extension-artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ on:
required: false
default: '30'

permissions:
contents: write
# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -30,6 +31,8 @@ jobs:
name: Build shared Playground base image
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read # Required to clone the wordpress-playground repo.

steps:
- name: Check out wordpress-playground
Expand Down Expand Up @@ -64,6 +67,8 @@ jobs:
needs: base-image
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read # Required to clone the repo.
strategy:
fail-fast: false
max-parallel: 6
Expand Down Expand Up @@ -159,6 +164,8 @@ jobs:
runs-on: ubuntu-latest
needs: build
timeout-minutes: 10
permissions:
contents: write # Required to push the built extension to the gh-pages branch.

steps:
- name: Check out sqlite-database-integration
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ concurrency:
group: release-publish
cancel-in-progress: false

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
publish-release:
name: Build plugin and create GitHub release
Expand All @@ -17,8 +21,10 @@ jobs:
&& github.event.pull_request.merged == true
&& startsWith(github.event.pull_request.head.ref, 'release/')
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: write
contents: write # Required to clone the repo, create the GitHub release, and delete the release branch.
Comment thread
desrosj marked this conversation as resolved.
pull-requests: read # Required for gh api graphql queries that read pull request author data.
outputs:
tag: ${{ steps.version.outputs.tag }}
prerelease: ${{ steps.version.outputs.prerelease }}
Expand Down Expand Up @@ -130,6 +136,8 @@ jobs:
needs: publish-release
if: needs.publish-release.outputs.prerelease == 'false'
uses: ./.github/workflows/release-wporg.yml
permissions:
contents: read # Required to clone the repo and download the release asset.
with:
tag: ${{ needs.publish-release.outputs.tag }}
secrets: inherit
7 changes: 6 additions & 1 deletion .github/workflows/release-wporg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,18 @@ concurrency:
group: release-wporg
cancel-in-progress: false

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
deploy:
name: Deploy plugin to WordPress.org
if: github.repository == 'WordPress/sqlite-database-integration'
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
contents: read # Required to clone the repo and download the release asset via gh.

steps:
- name: Checkout repository
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/verify-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,17 @@ on:
- trunk
pull_request:

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
verify-version:
name: Assert release metadata is internally consistent
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read # Required to clone the repo.
steps:
- uses: actions/checkout@v4

Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/wasm-spike.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,17 @@ on:
required: false
default: 'trunk'

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
base-image:
name: Build shared Playground base image
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read # Required to clone the wordpress-playground repo.

steps:
- name: Check out wordpress-playground
Expand Down Expand Up @@ -57,6 +63,8 @@ jobs:
needs: base-image
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
contents: read # Required to clone the repo.
strategy:
fail-fast: false
max-parallel: 6
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/wp-tests-end-to-end.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ on:
- main
pull_request:

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
test:
name: WordPress End-to-end Tests
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read # Required to clone the repo.

steps:
- name: Checkout repository
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/wp-tests-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,17 @@ on:
- main
pull_request:

# Disable permissions for all available scopes by default.
# Any needed permissions should be configured at the job level.
permissions: {}

jobs:
test:
name: WordPress PHPUnit Tests
runs-on: ubuntu-latest
timeout-minutes: 20
permissions:
contents: read # Required to clone the repo.

steps:
- name: Checkout repository
Expand All @@ -35,6 +41,8 @@ jobs:
name: WordPress PHPUnit Tests / Rust extension
runs-on: ubuntu-latest
timeout-minutes: 40
permissions:
contents: read # Required to clone the repo.

steps:
- name: Checkout repository
Expand Down
Loading