Skip to content

Commit e7643a0

Browse files
authored
Merge pull request #7 from amplify-security/ENG-1447/gha-pinned-hashes-rule
ENG-1447 Add GHA pinned hashes rule
2 parents 95bca3d + e83e478 commit e7643a0

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ jobs:
1010
pre-commit:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-python@v5
13+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
1515
with:
1616
python-version: '3.10'
17-
- uses: pre-commit/action@v2.0.0
17+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
1818
env:
1919
SKIP: yamlfmt

.github/workflows/semgrep-rule-lints.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88

99
jobs:
1010
semgrep:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-24.04
1212
name: semgrep-rule-lints
1313
steps:
1414
- uses: actions/checkout@v2
1515
- uses: actions/setup-python@v2
1616
with:
17-
python-version: 3.9.2
17+
python-version: 3.9.23
1818
- name: install semgrep
1919
run: pip3 install semgrep
2020
- name: lints for semgrep rules

.github/workflows/semgrep-rules-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ on:
1212
jobs:
1313
test-latest:
1414
name: rules-test-latest
15-
runs-on: ubuntu-20.04
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- uses: actions/checkout@v2
1818
- uses: actions/setup-python@v2
1919
with:
20-
python-version: 3.9.2
20+
python-version: 3.9.23
2121
- name: install semgrep via pip
2222
run: pip3 install semgrep
2323
- name: validate rules

.github/workflows/validate-r2c-registry-metadata.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
validate-metadata:
1717
if: github.repository == 'amplify-security/opengrep-rules'
1818
name: Validate r2c registry metadata
19-
runs-on: ubuntu-20.04
19+
runs-on: ubuntu-24.04
2020
steps:
2121
- uses: actions/checkout@v2
2222
with:
@@ -35,7 +35,7 @@ jobs:
3535
run: echo $CHANGED_FILES
3636
- uses: actions/setup-python@v2
3737
with:
38-
python-version: 3.9.2
38+
python-version: 3.9.23
3939
- name: install deps
4040
run: pip install jsonschema pyyaml
4141
- name: validate metadata

configs/amplify.list

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yaml/github-actions/security/third-party-action-not-pinned-to-commit-sha.yml:third-party-action-not-pinned-to-commit-sha

0 commit comments

Comments
 (0)