Skip to content
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
8 changes: 8 additions & 0 deletions .github/workflows/cs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ 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:
actionlint: #----------------------------------------------------------------------
name: 'Check GHA workflows'
runs-on: ubuntu-latest
permissions:
contents: read # Needed to clone the repo.

steps:
- name: Checkout code
Expand All @@ -41,6 +47,8 @@ jobs:
phpcs: #----------------------------------------------------------------------
name: 'PHPCS'
runs-on: ubuntu-latest
permissions:
contents: read # Needed to clone the repo.

steps:
- name: Checkout code
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/label-merge-conflicts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ on:
- synchronize
- reopened

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

jobs:
check-prs:
runs-on: ubuntu-latest
if: github.repository_owner == 'WordPress'
permissions:
pull-requests: write # Needed to add and remove labels on the PR.

name: Check PRs for merge conflicts

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ 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:
lint: #----------------------------------------------------------------------
runs-on: ubuntu-latest
permissions:
contents: read # Needed to clone the repo.

strategy:
matrix:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/quicktest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,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:
#### QUICK TEST STAGE ####
# Runs the tests against select PHP versions for pushes to arbitrary branches.
quicktest:
runs-on: ubuntu-latest
permissions:
contents: read # Needed to clone the repo.

strategy:
matrix:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/reusable-update-cacert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@ name: Certificates
on:
workflow_call:

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

jobs:
certificate-check:
name: "Check for updated certificate bundle"

runs-on: ubuntu-latest
permissions:
contents: write # Needed to push commits to a branch in the repo.
pull-requests: write # Needed to create a PR.

steps:
- name: Determine branches to use
id: branches
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,16 @@ 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:
#### TEST STAGE ####
test:
runs-on: ubuntu-latest
permissions:
contents: read # Needed to clone the repo.

strategy:
# Keys:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/update-cacert-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,16 @@ 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:
certificate-check:
# Don't run the cron job on forks.
if: ${{ github.event.repository.fork == false }}
permissions:
contents: write # Needed to push commits to a branch in the repo.
pull-requests: write # Needed to create a PR.

uses: ./.github/workflows/reusable-update-cacert.yml
8 changes: 8 additions & 0 deletions .github/workflows/update-cacert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ 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:
certificate-check:
permissions:
contents: write # Needed to push commits to a branch in the repo.
pull-requests: write # Needed to create a PR.

uses: ./.github/workflows/reusable-update-cacert.yml
13 changes: 10 additions & 3 deletions .github/workflows/update-website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

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

jobs:
prepare:
Expand All @@ -32,6 +32,9 @@ jobs:
if: github.repository == 'WordPress/Requests'

runs-on: ubuntu-latest
permissions:
contents: read # Needed to clone the repo.

steps:
# By default use the `stable` branch as the published docs should always
# reflect the latest release.
Expand Down Expand Up @@ -91,6 +94,10 @@ jobs:
if: github.repository == 'WordPress/Requests'

runs-on: ubuntu-latest
permissions:
contents: write # Needed to push commits to a branch in the repo.
pull-requests: write # Needed to create a PR.

steps:
# PRs based on the "pull request" event trigger will contain changes from the
# current `develop` branch, so should not be published as the website should
Expand Down
Loading