diff --git a/.github/workflows/brand-plugin-test.yml b/.github/workflows/brand-plugin-test.yml index ec5883c..9b0c07f 100644 --- a/.github/workflows/brand-plugin-test.yml +++ b/.github/workflows/brand-plugin-test.yml @@ -10,10 +10,16 @@ concurrency: group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} cancel-in-progress: true +# Disable permissions for all available scopes by default. +# Any needed permissions should be configured at the job level. +permissions: {} + jobs: setup: name: Setup runs-on: ubuntu-latest + permissions: {} # No checkout or GitHub API use; extracts branch metadata for reusable workflow inputs only + timeout-minutes: 10 outputs: branch: ${{ steps.extract_branch.outputs.branch }} steps: @@ -27,6 +33,9 @@ jobs: name: Bluehost Build and Test needs: setup uses: newfold-labs/workflows/.github/workflows/module-plugin-test.yml@main + permissions: + contents: read # Matches downstream reusable workflow; required for checkout/composer/GitHub-hosted actions using GITHUB_TOKEN on private repos + timeout-minutes: 45 with: module-repo: ${{ github.repository }} module-branch: ${{ needs.setup.outputs.branch }} @@ -37,6 +46,9 @@ jobs: name: HostGator Build and Test needs: setup uses: newfold-labs/workflows/.github/workflows/module-plugin-test.yml@main + permissions: + contents: read # Matches downstream reusable workflow; required for checkout/composer/GitHub-hosted actions using GITHUB_TOKEN on private repos + timeout-minutes: 45 with: module-repo: ${{ github.repository }} module-branch: ${{ needs.setup.outputs.branch }} @@ -47,6 +59,9 @@ jobs: name: Web.com Build and Test needs: setup uses: newfold-labs/workflows/.github/workflows/module-plugin-test.yml@main + permissions: + contents: read # Matches downstream reusable workflow; required for checkout/composer/GitHub-hosted actions using GITHUB_TOKEN on private repos + timeout-minutes: 45 with: module-repo: ${{ github.repository }} module-branch: ${{ needs.setup.outputs.branch }} @@ -57,6 +72,9 @@ jobs: name: Crazy Domains Build and Test needs: setup uses: newfold-labs/workflows/.github/workflows/module-plugin-test.yml@main + permissions: + contents: read # Matches downstream reusable workflow; required for checkout/composer/GitHub-hosted actions using GITHUB_TOKEN on private repos + timeout-minutes: 45 with: module-repo: ${{ github.repository }} module-branch: ${{ needs.setup.outputs.branch }} @@ -67,6 +85,9 @@ jobs: name: Mojo Build and Test needs: setup uses: newfold-labs/workflows/.github/workflows/module-plugin-test.yml@main + permissions: + contents: read # Matches downstream reusable workflow; required for checkout/composer/GitHub-hosted actions using GITHUB_TOKEN on private repos + timeout-minutes: 45 with: module-repo: ${{ github.repository }} module-branch: ${{ needs.setup.outputs.branch }} diff --git a/.github/workflows/codecoverage-main.yml b/.github/workflows/codecoverage-main.yml index 51d2163..9ad8429 100644 --- a/.github/workflows/codecoverage-main.yml +++ b/.github/workflows/codecoverage-main.yml @@ -13,11 +13,18 @@ on: - master workflow_dispatch: +# Disable permissions for all available scopes by default. +# Any needed permissions should be configured at the job level. +permissions: {} + jobs: codecoverage: runs-on: ubuntu-latest - + permissions: + contents: write # Required to clone and push to gh-pages via git-auto-commit-action with GITHUB_TOKEN + pull-requests: write # Required to post coverage comments via mshick/add-pr-comment on pull requests + timeout-minutes: 60 services: mysql: image: mysql:5.7 # Password auth did not work on 8.0 on PHP 7.3, it did seem to work for PHP 7.4+ diff --git a/.github/workflows/satis-webhook.yml b/.github/workflows/satis-webhook.yml index d3051e2..7c7942d 100644 --- a/.github/workflows/satis-webhook.yml +++ b/.github/workflows/satis-webhook.yml @@ -5,10 +5,16 @@ on: types: - created +# Disable permissions for all available scopes by default. +# Any needed permissions should be configured at the job level. +permissions: {} + jobs: webhook: name: Send Webhook runs-on: ubuntu-latest + permissions: {} # Steps only use ${{ secrets.WEBHOOK_TOKEN }} for repository_dispatch; no GITHUB_TOKEN usage + timeout-minutes: 30 steps: - name: Set Package