diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..28b854e --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,25 @@ +version: 2 + +updates: + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + cooldown: + default-days: 4 + groups: + github-actions: + patterns: ["*"] + commit-message: + prefix: chore + include: scope + + # Version updates are off for Composer packages: only security updates are proposed. + - package-ecosystem: composer + directory: / + schedule: + interval: weekly + open-pull-requests-limit: 0 + commit-message: + prefix: chore + include: scope diff --git a/.github/workflows/breaking_changes.yml b/.github/workflows/breaking_changes.yml index 83278bf..15f6142 100644 --- a/.github/workflows/breaking_changes.yml +++ b/.github/workflows/breaking_changes.yml @@ -103,7 +103,7 @@ jobs: echo "::error::$new brings approved breaking changes (${added//$'\n'/, }). Add '!' to the PR title to release a major, or label the PR sdk-not-breaking and name each ticket in the PR body if none of them breaks this SDK. $hold" exit 1 # A hand-written change never moves .spec-version, and a regen can break callers in ways chat's check allows, so the public methods themselves are compared too, between the base tip and the merge commit. - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 if: ${{ !cancelled() }} with: fetch-depth: 2 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07a573f..fed6087 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -105,7 +105,7 @@ jobs: name: 🧪 Tests needs: [release-only, unit] if: ${{ !cancelled() }} - runs-on: { group: github-public-amd64 } + runs-on: ubuntu-26.04 timeout-minutes: 5 steps: - name: Check the unit lane diff --git a/.github/workflows/dependency_review.yml b/.github/workflows/dependency_review.yml new file mode 100644 index 0000000..f04cc05 --- /dev/null +++ b/.github/workflows/dependency_review.yml @@ -0,0 +1,20 @@ +name: Dependency Review + +on: + pull_request: + +permissions: + contents: read + +jobs: + dependency-review: + name: Dependency Review + runs-on: + group: github-public-amd64 + timeout-minutes: 5 + steps: + - name: Dependency Review + uses: actions/dependency-review-action@bbc44d14a204704ccc493733616cd1e93a0321ec # v5.0.1 + with: + show-openssf-scorecard: true + warn-on-openssf-scorecard-level: 3 diff --git a/.github/workflows/pr_title.yml b/.github/workflows/pr_title.yml index cfd6193..f01dd53 100644 --- a/.github/workflows/pr_title.yml +++ b/.github/workflows/pr_title.yml @@ -12,6 +12,6 @@ jobs: name: 👮 Conventional PR title runs-on: { group: github-public-amd64 } steps: - - uses: amannn/action-semantic-pull-request@v6 + - uses: amannn/action-semantic-pull-request@66e72920af32222769c386d81f89656ebcb6d6d5 # v6.1.4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/regen.yml b/.github/workflows/regen.yml index ac14e65..14d71ba 100644 --- a/.github/workflows/regen.yml +++ b/.github/workflows/regen.yml @@ -41,7 +41,7 @@ jobs: statuses: read steps: - id: app - uses: actions/create-github-app-token@v3 + uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0 with: client-id: Iv23lioh9qYGjBIp9nsK private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }} @@ -49,13 +49,13 @@ jobs: permission-pull-requests: write # Read-only, for the generator on the chat release and the protocol release list. - id: read - uses: actions/create-github-app-token@v3 + uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0 with: client-id: Iv23lioh9qYGjBIp9nsK private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }} repositories: chat,protocol permission-contents: read - - uses: actions/checkout@v5.0.1 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: # The branch tip, not the commit of the event: a run queued behind another one must see the regen that one merged. ref: ${{ github.ref }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa6a19e..3589643 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,13 +44,13 @@ jobs: steps: - id: app if: github.ref_name == github.event.repository.default_branch - uses: actions/create-github-app-token@v3 + uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0 with: client-id: Iv23lioh9qYGjBIp9nsK private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }} permission-contents: write permission-pull-requests: write - - uses: googleapis/release-please-action@v4 + - uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1 with: token: ${{ steps.app.outputs.token || github.token }} config-file: release-please-config.json @@ -193,7 +193,7 @@ jobs: release_created: ${{ steps.release.outputs.release_created }} tag_name: ${{ steps.release.outputs.tag_name }} steps: - - uses: googleapis/release-please-action@v4 + - uses: googleapis/release-please-action@5c625bfb5d1ff62eadeeb3772007f7f66fdcf071 # v4.4.1 id: release with: config-file: release-please-config.json diff --git a/.github/workflows/run_integration.yml b/.github/workflows/run_integration.yml index c82f807..12254cc 100644 --- a/.github/workflows/run_integration.yml +++ b/.github/workflows/run_integration.yml @@ -24,19 +24,19 @@ jobs: runs-on: { group: github-public-amd64 } timeout-minutes: 30 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Setup PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0 with: php-version: '8.1' extensions: curl, json tools: composer:v2 - name: Cache composer dependencies - uses: actions/cache@v4 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: vendor key: composer-8.1-${{ hashFiles('composer.lock') }} diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 472588a..73882dd 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -24,19 +24,19 @@ jobs: php-version: ['8.1', '8.2', '8.3'] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Setup PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0 with: php-version: ${{ matrix.php-version }} extensions: curl, json tools: composer:v2 - name: Cache composer dependencies - uses: actions/cache@v4 + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: vendor key: composer-${{ matrix.php-version }}-${{ hashFiles('composer.lock') }} @@ -58,12 +58,12 @@ jobs: timeout-minutes: 20 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Setup PHP - uses: shivammathur/setup-php@v2 + uses: shivammathur/setup-php@eb7c497e18156a6bbabfef1d3a82760b9eda3962 # 2.40.0 with: php-version: '8.3' extensions: curl, json