Skip to content

Commit 928d0e7

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io>
1 parent 20914f4 commit 928d0e7

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/example.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
timeout-minutes: 5
1010
steps:
1111
- name: Harden Runner
12-
uses: step-security/harden-runner@v2
12+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
1313
with:
1414
egress-policy: audit
1515

16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
- name: Get DynamoDB Item
1818
id: config
19-
uses: step-security/dynamodb-actions@v1
19+
uses: step-security/dynamodb-actions@0b116fa64bf24e8baef26c12b3bc548a91c61f51 # v1.2.3
2020
env:
2121
AWS_DEFAULT_REGION: us-west-2
2222
AWS_REGION: us-west-2
@@ -39,7 +39,7 @@ jobs:
3939
run: |
4040
jq '.commit' <<< '${{ steps.config.outputs.item }}'
4141
- name: Delete DynamoDB Item
42-
uses: step-security/dynamodb-actions@v1
42+
uses: step-security/dynamodb-actions@0b116fa64bf24e8baef26c12b3bc548a91c61f51 # v1.2.3
4343
env:
4444
AWS_DEFAULT_REGION: us-west-2
4545
AWS_REGION: us-west-2
@@ -52,7 +52,7 @@ jobs:
5252
key: |
5353
{ key: "foo" }
5454
- name: Put DynamoDB Item (JSON input)
55-
uses: step-security/dynamodb-actions@v1
55+
uses: step-security/dynamodb-actions@0b116fa64bf24e8baef26c12b3bc548a91c61f51 # v1.2.3
5656
env:
5757
AWS_DEFAULT_REGION: us-west-2
5858
AWS_REGION: us-west-2
@@ -71,7 +71,7 @@ jobs:
7171
stars: 12345
7272
}
7373
- name: Put DynamoDB Item (File Input)
74-
uses: step-security/dynamodb-actions@v1
74+
uses: step-security/dynamodb-actions@0b116fa64bf24e8baef26c12b3bc548a91c61f51 # v1.2.3
7575
env:
7676
AWS_DEFAULT_REGION: us-west-2
7777
AWS_REGION: us-west-2
@@ -83,7 +83,7 @@ jobs:
8383
table: dynamodb-actions-test
8484
file: fixtures/item.json
8585
- name: BatchPut DynamoDB Item (JSON input)
86-
uses: step-security/dynamodb-actions@v1
86+
uses: step-security/dynamodb-actions@0b116fa64bf24e8baef26c12b3bc548a91c61f51 # v1.2.3
8787
env:
8888
AWS_DEFAULT_REGION: us-west-2
8989
AWS_REGION: us-west-2
@@ -105,7 +105,7 @@ jobs:
105105
value: "baz"
106106
}]
107107
- name: BatchPut DynamoDB Item (File Input)
108-
uses: step-security/dynamodb-actions@v1
108+
uses: step-security/dynamodb-actions@0b116fa64bf24e8baef26c12b3bc548a91c61f51 # v1.2.3
109109
env:
110110
AWS_DEFAULT_REGION: us-west-2
111111
AWS_REGION: us-west-2

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
container: node:20
1010
steps:
1111
- name: Harden Runner
12-
uses: step-security/harden-runner@v2
12+
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
1313
with:
1414
egress-policy: audit
1515

16-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1717
- name: Prepare
1818
run: npm ci
1919
- name: Build

0 commit comments

Comments
 (0)