From b46a04995400f33ea04930c96c7a0b77fb694004 Mon Sep 17 00:00:00 2001 From: Thomas Piccirello Date: Wed, 20 May 2026 22:45:40 -0700 Subject: [PATCH] chore: pin github actions to sha --- .../workflows/call-flags-project-board.yml | 2 +- .github/workflows/codeql.yml | 2 +- .github/workflows/php.yml | 4 ++-- .github/workflows/release.yml | 24 +++++++++---------- .github/workflows/stale.yaml | 2 +- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/call-flags-project-board.yml b/.github/workflows/call-flags-project-board.yml index 627d714..c1019ea 100644 --- a/.github/workflows/call-flags-project-board.yml +++ b/.github/workflows/call-flags-project-board.yml @@ -9,7 +9,7 @@ on: jobs: call-flags-project: - uses: PostHog/.github/.github/workflows/flags-project-board.yml@main + uses: PostHog/.github/.github/workflows/flags-project-board.yml@d2e7c952fef6a22b2210bcffc70bec71abeeba03 with: pr_number: ${{ github.event.pull_request.number }} pr_node_id: ${{ github.event.pull_request.node_id }} diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 1f8645c..0ccbc18 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -26,7 +26,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Initialize CodeQL uses: github/codeql-action/init@0e9f55954318745b37b7933c693bc093f7336125 # v4.35.1 diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index fad18db..234b97a 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -25,7 +25,7 @@ jobs: matrix: php-version: [8.2, 8.3, 8.4, 8.5] steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Set up PHP ${{ matrix.php-version }} uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # v2.37.0 @@ -43,7 +43,7 @@ jobs: phpcs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: fetch-depth: 0 # important! diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 52c755c..bc9751a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: has-changesets: ${{ steps.check.outputs.has-changesets }} steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: main fetch-depth: 0 @@ -45,7 +45,7 @@ jobs: name: Notify Slack - Approval Needed needs: check-changesets if: needs.check-changesets.outputs.has-changesets == 'true' - uses: posthog/.github/.github/workflows/notify-approval-needed.yml@main + uses: posthog/.github/.github/workflows/notify-approval-needed.yml@d2e7c952fef6a22b2210bcffc70bec71abeeba03 with: slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }} slack_user_group_id: ${{ vars.GROUP_CLIENT_LIBRARIES_SLACK_GROUP_ID }} @@ -65,7 +65,7 @@ jobs: steps: - name: Notify Slack - Approved if: needs.notify-approval-needed.outputs.slack_ts != '' - uses: posthog/.github/.github/actions/slack-thread-reply@main + uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03 with: slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }} slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }} @@ -74,13 +74,13 @@ jobs: emoji_reaction: "white_check_mark" - name: Get GitHub App token id: releaser - uses: actions/create-github-app-token@v3 + uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 with: client-id: ${{ secrets.GH_APP_POSTHOG_PHP_RELEASER_APP_ID }} private-key: ${{ secrets.GH_APP_POSTHOG_PHP_RELEASER_PRIVATE_KEY }} - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 with: ref: main fetch-depth: 0 @@ -92,10 +92,10 @@ jobs: git config user.email "github-actions[bot]@users.noreply.github.com" - name: Setup pnpm - uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4 + uses: pnpm/action-setup@a7487c7e89a18df4991f7f222e4898a00d66ddda # v4.1.0 - name: Setup Node.js - uses: actions/setup-node@v6 + uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0 with: node-version: 24 cache: pnpm @@ -143,7 +143,7 @@ jobs: - name: Send failure event to PostHog if: failure() - uses: PostHog/posthog-github-action@v1 + uses: PostHog/posthog-github-action@58dea254b598fb5d469c0699c98af8288a7f7650 # v1.2.0 with: posthog-token: "${{ secrets.POSTHOG_PROJECT_API_KEY }}" event: "posthog-php-github-release-workflow-failure" @@ -157,7 +157,7 @@ jobs: - name: Notify Slack - Failed if: failure() && needs.notify-approval-needed.outputs.slack_ts != '' - uses: posthog/.github/.github/actions/slack-thread-reply@main + uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03 with: slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }} slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }} @@ -172,10 +172,10 @@ jobs: if: always() && needs.release.result == 'success' && needs.notify-approval-needed.outputs.slack_ts != '' steps: - name: Checkout repository - uses: actions/checkout@v6 + uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Notify Slack - Released - uses: posthog/.github/.github/actions/slack-thread-reply@main + uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03 with: slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }} slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }} @@ -215,7 +215,7 @@ jobs: - name: Notify Slack - Rejected if: steps.check-rejection.outputs.was_rejected == 'true' continue-on-error: true - uses: PostHog/.github/.github/actions/slack-thread-reply@main + uses: PostHog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03 with: slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }} slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }} diff --git a/.github/workflows/stale.yaml b/.github/workflows/stale.yaml index 8fe59a8..a1f6b43 100644 --- a/.github/workflows/stale.yaml +++ b/.github/workflows/stale.yaml @@ -25,7 +25,7 @@ jobs: echo "skip=false" >> $GITHUB_OUTPUT fi - - uses: actions/stale@v10 + - uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0 if: steps.holiday.outputs.skip != 'true' with: days-before-issue-stale: 730