Skip to content

Commit ceedd17

Browse files
step-security-botjescaladakriswest
authored
fix: apply security best practices (#1548)
* fix: apply security best practices Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> * chore: `npm run format` * chore: delete .pre-commit-config.yaml Removes `.pre-commit-config.yaml` as we already have `.husky/pre-commit` * ci: update interval from daily to weekly * ci: refactor dependabot.yml for simplicity Consolidate npm and docker updates into single entries and adjust directories for better organization. * ci: delete renovate.json to prevent duplicate bump PRs * chore: npm run format * Update .github/dependabot.yml Co-authored-by: Kris West <kristopher.west@natwest.com> Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com> * Update .github/dependabot.yml Co-authored-by: Kris West <kristopher.west@natwest.com> Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com> * Update .github/dependabot.yml Co-authored-by: Kris West <kristopher.west@natwest.com> Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com> * Update .github/dependabot.yml Co-authored-by: Kris West <kristopher.west@natwest.com> Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com> --------- Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> Signed-off-by: Juan Escalada <97265671+jescalada@users.noreply.github.com> Co-authored-by: Juan Escalada <juanescalada175@gmail.com> Co-authored-by: Juan Escalada <97265671+jescalada@users.noreply.github.com> Co-authored-by: Kris West <kristopher.west@natwest.com>
1 parent 84a1a8c commit ceedd17

5 files changed

Lines changed: 91 additions & 29 deletions

File tree

.github/dependabot.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: github-actions
5+
directories:
6+
- '/'
7+
schedule:
8+
interval: weekly
9+
cooldown:
10+
default-days: 3
11+
commit-message:
12+
prefix: 'chore'
13+
include: 'scope'
14+
labels:
15+
- 'dependencies'
16+
- 'automated'
17+
groups:
18+
github-actions:
19+
patterns:
20+
- '*'
21+
22+
- package-ecosystem: docker
23+
directories:
24+
- '/'
25+
- '/localgit'
26+
schedule:
27+
interval: weekly
28+
cooldown:
29+
default-days: 3
30+
commit-message:
31+
prefix: 'chore'
32+
include: 'scope'
33+
labels:
34+
- 'dependencies'
35+
- 'automated'
36+
groups:
37+
docker:
38+
patterns:
39+
- '*'
40+
41+
- package-ecosystem: npm
42+
directories:
43+
- '/'
44+
- '/packages/git-proxy-cli'
45+
- '/plugins/git-proxy-plugin-samples'
46+
- '/test/fixtures/test-package'
47+
- '/website'
48+
schedule:
49+
interval: weekly
50+
versioning-strategy: increase-if-necessary
51+
cooldown:
52+
semver-patch-days: 3
53+
semver-minor-days: 3
54+
semver-major-days: 7
55+
open-pull-requests-limit: 10
56+
commit-message:
57+
prefix: 'chore'
58+
include: 'scope'
59+
labels:
60+
- 'dependencies'
61+
- 'automated'
62+
groups:
63+
npm-non-major:
64+
patterns:
65+
- '*'
66+
update-types:
67+
- minor
68+
- patch

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ jobs:
145145
name: build result
146146
needs: [build-ubuntu, build-windows]
147147
steps:
148+
- name: Harden the runner (Audit all outbound calls)
149+
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
150+
with:
151+
egress-policy: audit
152+
148153
- name: Check build results
149154
run: |
150155
ubuntu_result="${{ needs.build-ubuntu.result }}"

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
release:
77
types: [published]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
docker-build-publish:
1114
permissions:
@@ -14,6 +17,11 @@ jobs:
1417
runs-on: ubuntu-latest
1518

1619
steps:
20+
- name: Harden the runner (Audit all outbound calls)
21+
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
22+
with:
23+
egress-policy: audit
24+
1725
- name: Set up Docker Buildx
1826
uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4
1927

.github/workflows/e2e.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@ jobs:
2121
BUILDX_CACHE_SCOPE: ${{ matrix.suite }}-build
2222

2323
steps:
24+
- name: Harden the runner (Audit all outbound calls)
25+
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
26+
with:
27+
egress-policy: audit
28+
2429
- name: Checkout code
2530
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2631

@@ -95,6 +100,11 @@ jobs:
95100
name: e2e
96101
needs: [e2e]
97102
steps:
103+
- name: Harden the runner (Audit all outbound calls)
104+
uses: step-security/harden-runner@ab7a9404c0f3da075243ca237b5fac12c98deaa5 # v2.19.3
105+
with:
106+
egress-policy: audit
107+
98108
- name: Check e2e results
99109
run: |
100110
result="${{ needs.e2e.result }}"

renovate.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)