Skip to content

Commit 6430578

Browse files
committed
chore: pin github actions to sha
1 parent 901ec34 commit 6430578

6 files changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/call-flags-project-board.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
call-flags-project:
12-
uses: PostHog/.github/.github/workflows/flags-project-board.yml@main
12+
uses: PostHog/.github/.github/workflows/flags-project-board.yml@d2e7c952fef6a22b2210bcffc70bec71abeeba03
1313
with:
1414
pr_number: ${{ github.event.pull_request.number }}
1515
pr_node_id: ${{ github.event.pull_request.node_id }}

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
otp: "25.x"
3030

3131
steps:
32-
- uses: actions/checkout@v6
32+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3333

3434
- name: Set up Elixir
3535
uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0
@@ -38,7 +38,7 @@ jobs:
3838
otp-version: ${{ matrix.otp }}
3939

4040
- name: Restore dependencies cache
41-
uses: actions/cache@v5
41+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
4242
with:
4343
path: deps
4444
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}-${{ matrix.elixir }}-${{ matrix.otp }}
@@ -58,7 +58,7 @@ jobs:
5858
name: Static checks
5959
runs-on: ubuntu-latest
6060
steps:
61-
- uses: actions/checkout@v6
61+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6262

6363
- name: Set up Elixir
6464
uses: erlef/setup-beam@fc68ffb90438ef2936bbb3251622353b3dcb2f93 # v1.24.0
@@ -67,7 +67,7 @@ jobs:
6767
otp-version: 27.3
6868

6969
- name: Restore dependencies cache
70-
uses: actions/cache@v5
70+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
7171
with:
7272
path: deps
7373
key: ${{ runner.os }}-mix-${{ hashFiles('**/mix.lock') }}-1.18.3-27.3

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,16 @@ jobs:
2525
build-mode: none
2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v6
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2929

3030
- name: Initialize CodeQL
31-
uses: github/codeql-action/init@v4
31+
uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
3232
with:
3333
languages: ${{ matrix.language }}
3434
build-mode: ${{ matrix.build-mode }}
3535
queries: security-and-quality
3636

3737
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@v4
38+
uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
3939
with:
4040
category: '/language:${{ matrix.language }}'

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
has-changesets: ${{ steps.check.outputs.has-changesets }}
2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v6
27+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2828
with:
2929
ref: main
3030
fetch-depth: 0
@@ -45,7 +45,7 @@ jobs:
4545
name: Notify Slack - Approval Needed
4646
needs: check-changesets
4747
if: needs.check-changesets.outputs.has-changesets == 'true'
48-
uses: posthog/.github/.github/workflows/notify-approval-needed.yml@main
48+
uses: posthog/.github/.github/workflows/notify-approval-needed.yml@d2e7c952fef6a22b2210bcffc70bec71abeeba03
4949
with:
5050
slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }}
5151
slack_user_group_id: ${{ vars.GROUP_CLIENT_LIBRARIES_SLACK_GROUP_ID }}
@@ -68,7 +68,7 @@ jobs:
6868
steps:
6969
- name: Notify Slack - Approved
7070
if: needs.notify-approval-needed.outputs.slack_ts != ''
71-
uses: posthog/.github/.github/actions/slack-thread-reply@main
71+
uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03
7272
with:
7373
slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }}
7474
slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }}
@@ -78,13 +78,13 @@ jobs:
7878

7979
- name: Get GitHub App token
8080
id: releaser
81-
uses: actions/create-github-app-token@v3
81+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
8282
with:
8383
client-id: ${{ secrets.GH_APP_POSTHOG_ELIXIR_RELEASER_APP_ID }}
8484
private-key: ${{ secrets.GH_APP_POSTHOG_ELIXIR_RELEASER_PRIVATE_KEY }}
8585

8686
- name: Checkout repository
87-
uses: actions/checkout@v6
87+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8888
with:
8989
ref: main
9090
fetch-depth: 0
@@ -104,7 +104,7 @@ jobs:
104104

105105
- name: Cache Sampo CLI
106106
id: cache-sampo
107-
uses: actions/cache@v5
107+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
108108
with:
109109
path: ~/.cargo/bin/sampo
110110
key: sampo-${{ runner.os }}-${{ runner.arch }}
@@ -184,7 +184,7 @@ jobs:
184184
# Notify in case of a failure
185185
- name: Send failure event to PostHog
186186
if: ${{ failure() }}
187-
uses: PostHog/posthog-github-action@v1
187+
uses: PostHog/posthog-github-action@58dea254b598fb5d469c0699c98af8288a7f7650 # v1.2.0
188188
with:
189189
posthog-token: "${{ secrets.POSTHOG_PROJECT_API_KEY }}"
190190
event: "posthog-elixir-github-release-workflow-failure"
@@ -198,7 +198,7 @@ jobs:
198198
199199
- name: Notify Slack - Failed
200200
if: ${{ failure() && needs.notify-approval-needed.outputs.slack_ts != '' }}
201-
uses: posthog/.github/.github/actions/slack-thread-reply@main
201+
uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03
202202
with:
203203
slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }}
204204
slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }}
@@ -213,10 +213,10 @@ jobs:
213213
if: always() && needs.release.result == 'success' && needs.notify-approval-needed.outputs.slack_ts != ''
214214
steps:
215215
- name: Checkout repository
216-
uses: actions/checkout@v6
216+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
217217

218218
- name: Notify Slack - Released
219-
uses: posthog/.github/.github/actions/slack-thread-reply@main
219+
uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03
220220
with:
221221
slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }}
222222
slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }}

.github/workflows/sdk-compliance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
compliance:
1616
name: PostHog SDK compliance tests
17-
uses: PostHog/posthog-sdk-test-harness/.github/workflows/test-sdk-action.yml@main
17+
uses: PostHog/posthog-sdk-test-harness/.github/workflows/test-sdk-action.yml@1b56b38f46ac563ab2d5d7a8021740e8633a560b
1818
with:
1919
adapter-dockerfile: "sdk_compliance_adapter/Dockerfile"
2020
adapter-context: "."

.github/workflows/stale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
echo "skip=false" >> $GITHUB_OUTPUT
2626
fi
2727
28-
- uses: actions/stale@v10
28+
- uses: actions/stale@eb5cf3af3ac0a1aa4c9c45633dd1ae542a27a899 # v10.3.0
2929
if: steps.holiday.outputs.skip != 'true'
3030
with:
3131
days-before-issue-stale: 730

0 commit comments

Comments
 (0)