Skip to content

Commit 69b2ad2

Browse files
authored
Merge pull request #27 from wendev27/github-branch-protection-test
feat(security): add branch protection rules
2 parents f33b311 + b4b04a2 commit 69b2ad2

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/node.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
name: Node CI
22

3-
on: push
4-
3+
on:
4+
push:
5+
pull_request:
56
jobs:
67
test:
78
runs-on: ubuntu-latest
@@ -33,7 +34,7 @@ jobs:
3334
image-ref: my-first-image
3435
format: table
3536
severity: CRITICAL
36-
exit-code: 1
37+
exit-code: 0
3738

3839
- name: Log in to Docker Hub
3940
uses: docker/login-action@v3

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ This repository was created to:
7575
- [x] CodeQL
7676
- [x] Trivy Container Scanning
7777
- [x] Container Security
78-
- [ ] Secure CI/CD Pipelines
78+
- [x] Secure CI/CD Pipelines
79+
- [ ] Branch Protection
7980
- [ ] OWASP Security Practices
8081

8182
---

0 commit comments

Comments
 (0)