Skip to content

Commit 0917958

Browse files
authored
Merge pull request #3 from step-security-bot/stepsecurity_remediation_1742397039
CI/CD Hardening: Fixing StepSecurity Flagged Issues
2 parents fdea273 + 702000e commit 0917958

File tree

4 files changed

+34
-14
lines changed

4 files changed

+34
-14
lines changed

Diff for: .github/workflows/cleanup-projects.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: oven-sh/setup-bun@v1
12+
- name: Harden the runner (Audit all outbound calls)
13+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
14+
with:
15+
egress-policy: audit
16+
17+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
18+
- uses: oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7 # v1.2.2
1419

1520
- name: Install Dependencies
1621
run: bun install

Diff for: .github/workflows/deploy-api.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: oven-sh/setup-bun@v1
15+
- name: Harden the runner (Audit all outbound calls)
16+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
17+
with:
18+
egress-policy: audit
19+
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
- uses: oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7 # v1.2.2
1722

1823
- name: Install Dependencies
1924
run: bun install
@@ -33,7 +38,7 @@ jobs:
3338
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }}
3439

3540
- name: Deploy
36-
uses: AdrianGonz97/refined-cf-pages-action@v1
41+
uses: AdrianGonz97/refined-cf-pages-action@6f7dc14a750d860b899996c827c94925b798cb38 # v1.2.6
3742
with:
3843
githubToken: ${{ secrets.GH_TOKEN }}
3944
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

Diff for: .github/workflows/deploy-preview.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,24 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v4
22-
- uses: oven-sh/setup-bun@v1
21+
- name: Harden the runner (Audit all outbound calls)
22+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
23+
with:
24+
egress-policy: audit
25+
26+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
27+
- uses: oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7 # v1.2.2
2328

2429
- name: Install Dependencies
2530
run: bun install
2631

2732
- name: Get git branch name
2833
id: branch-name
29-
uses: tj-actions/branch-names@v8
34+
uses: tj-actions/branch-names@6871f53176ad61624f978536bbf089c574dc19a2 # v8.0.1
3035

3136

3237
- id: create-branch
33-
uses: neondatabase/create-branch-action@v5
38+
uses: neondatabase/create-branch-action@34f619c41c6e67b4f2f13f1c6eae90827a5f2cf4 # v5
3439
with:
3540
project_id: delicate-smoke-42060837
3641
username: "neondb_owner" # Change this to the role you use to connect to your database
@@ -53,7 +58,7 @@ jobs:
5358
UPSTASH_REDIS_REST_TOKEN: ${{ secrets.UPSTASH_REDIS_REST_TOKEN }}
5459

5560
- name: Deploy API
56-
uses: AdrianGonz97/refined-cf-pages-action@v1
61+
uses: AdrianGonz97/refined-cf-pages-action@6f7dc14a750d860b899996c827c94925b798cb38 # v1.2.6
5762
id: deploy-api
5863
with:
5964
githubToken: ${{ secrets.GH_TOKEN }}
@@ -72,7 +77,7 @@ jobs:
7277

7378
- name: Deploy Web
7479
id: deploy-web
75-
uses: AdrianGonz97/refined-cf-pages-action@v1
80+
uses: AdrianGonz97/refined-cf-pages-action@6f7dc14a750d860b899996c827c94925b798cb38 # v1.2.6
7681
with:
7782
githubToken: ${{ secrets.GH_TOKEN }}
7883
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

Diff for: .github/workflows/deploy-web.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: oven-sh/setup-bun@v1
15+
- name: Harden the runner (Audit all outbound calls)
16+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
17+
with:
18+
egress-policy: audit
19+
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21+
- uses: oven-sh/setup-bun@f4d14e03ff726c06358e5557344e1da148b56cf7 # v1.2.2
1722

1823
- name: Install Dependencies
1924
run: bun install
@@ -24,7 +29,7 @@ jobs:
2429
VITE_CLOUDFLARE_TURNSTILE_SITE_KEY: ${{ secrets.VITE_CLOUDFLARE_TURNSTILE_SITE_KEY }}
2530

2631
- name: Deploy
27-
uses: AdrianGonz97/refined-cf-pages-action@v1
32+
uses: AdrianGonz97/refined-cf-pages-action@6f7dc14a750d860b899996c827c94925b798cb38 # v1.2.6
2833
with:
2934
githubToken: ${{ secrets.GH_TOKEN }}
3035
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}

0 commit comments

Comments
 (0)