Skip to content

Commit 2c0db1d

Browse files
authored
chore: pin github actions to commit shas (#151)
chore: pin github actions to sha
1 parent c30f7e5 commit 2c0db1d

5 files changed

Lines changed: 18 additions & 18 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/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,16 @@ jobs:
3333
build-mode: none
3434
steps:
3535
- name: Checkout repository
36-
uses: actions/checkout@v6
36+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3737

3838
# Initializes the CodeQL tools for scanning.
3939
- name: Initialize CodeQL
40-
uses: github/codeql-action/init@v4
40+
uses: github/codeql-action/init@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
4141
with:
4242
languages: ${{ matrix.language }}
4343
build-mode: ${{ matrix.build-mode }}
4444

4545
- name: Perform CodeQL Analysis
46-
uses: github/codeql-action/analyze@v4
46+
uses: github/codeql-action/analyze@9e0d7b8d25671d64c341c19c0152d693099fb5ba # v4.35.5
4747
with:
4848
category: "/language:${{matrix.language}}"

.github/workflows/release.yml

Lines changed: 12 additions & 12 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 }}
@@ -67,7 +67,7 @@ jobs:
6767
steps:
6868
- name: Notify Slack - Approved
6969
if: needs.notify-approval-needed.outputs.slack_ts != ''
70-
uses: posthog/.github/.github/actions/slack-thread-reply@main
70+
uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03
7171
with:
7272
slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }}
7373
slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }}
@@ -77,13 +77,13 @@ jobs:
7777

7878
- name: Get GitHub App token
7979
id: releaser
80-
uses: actions/create-github-app-token@v3
80+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
8181
with:
8282
client-id: ${{ secrets.GH_APP_POSTHOG_RUBY_RELEASER_APP_ID }}
8383
private-key: ${{ secrets.GH_APP_POSTHOG_RUBY_RELEASER_PRIVATE_KEY }}
8484

8585
- name: Checkout repository
86-
uses: actions/checkout@v6
86+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8787
with:
8888
ref: main
8989
fetch-depth: 0
@@ -100,7 +100,7 @@ jobs:
100100
version: 10.33.0
101101

102102
- name: Set up Node.js
103-
uses: actions/setup-node@v6
103+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
104104
with:
105105
node-version: 24
106106
cache: pnpm
@@ -141,7 +141,7 @@ jobs:
141141

142142
- name: Notify Slack - Failed
143143
if: ${{ failure() && needs.notify-approval-needed.outputs.slack_ts != '' }}
144-
uses: posthog/.github/.github/actions/slack-thread-reply@main
144+
uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03
145145
with:
146146
slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }}
147147
slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }}
@@ -180,7 +180,7 @@ jobs:
180180
181181
- name: Notify Slack - Rejected
182182
if: steps.check-rejection.outputs.was_rejected == 'true'
183-
uses: posthog/.github/.github/actions/slack-thread-reply@main
183+
uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03
184184
with:
185185
slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }}
186186
slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }}
@@ -198,7 +198,7 @@ jobs:
198198
id-token: write
199199
steps:
200200
- name: Checkout repository
201-
uses: actions/checkout@v6
201+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
202202
with:
203203
ref: main
204204
fetch-depth: 0
@@ -256,7 +256,7 @@ jobs:
256256
257257
- name: Send failure event to PostHog
258258
if: ${{ failure() }}
259-
uses: PostHog/posthog-github-action@v1
259+
uses: PostHog/posthog-github-action@58dea254b598fb5d469c0699c98af8288a7f7650 # v1.2.0
260260
with:
261261
posthog-token: "${{ secrets.POSTHOG_PROJECT_API_KEY }}"
262262
event: "posthog-ruby-github-release-workflow-failure"
@@ -270,7 +270,7 @@ jobs:
270270
271271
- name: Notify Slack - Failed
272272
if: ${{ failure() && needs.notify-approval-needed.outputs.slack_ts != '' }}
273-
uses: posthog/.github/.github/actions/slack-thread-reply@main
273+
uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03
274274
with:
275275
slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }}
276276
slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }}
@@ -285,7 +285,7 @@ jobs:
285285
if: always() && needs.publish.result == 'success' && needs.notify-approval-needed.outputs.slack_ts != ''
286286
steps:
287287
- name: Notify Slack - Released
288-
uses: posthog/.github/.github/actions/slack-thread-reply@main
288+
uses: posthog/.github/.github/actions/slack-thread-reply@d2e7c952fef6a22b2210bcffc70bec71abeeba03
289289
with:
290290
slack_bot_token: ${{ secrets.SLACK_CLIENT_LIBRARIES_BOT_TOKEN }}
291291
slack_channel_id: ${{ vars.SLACK_APPROVALS_CLIENT_LIBRARIES_CHANNEL_ID }}

.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

.github/workflows/unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
GH_ACTIONS_UNIT_TESTS: 1
1919

2020
steps:
21-
- uses: actions/checkout@v6
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2222

2323
- name: Use Ruby ${{ matrix.ruby-version }}
2424
uses: ruby/setup-ruby@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1.295.0

0 commit comments

Comments
 (0)