Skip to content

Commit 8ae0843

Browse files
authored
Merge pull request #332 from Automattic/add/git-hash-checker
Adds git hash checker
2 parents 1702961 + 2ffc314 commit 8ae0843

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Git Hash Security Check
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- trunk
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
check-git-hash-security:
15+
name: Verify Full Git Commit Hashes
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Check out the source code
19+
uses: actions/checkout@v4
20+
21+
- name: Check for short git hashes in package.json
22+
uses: Automattic/vip-actions/git-hash-security-check@7b98dcb98d652bf02037977b1b85abb971c345d0

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/dist/
22
/node_modules/
3+
/preflight-checks/

0 commit comments

Comments
 (0)