Skip to content

Commit 36f7e54

Browse files
[StepSecurity] Apply security best practices (#88)
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent bb7d291 commit 36f7e54

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,23 @@ updates:
99
directory: /
1010
schedule:
1111
interval: daily
12+
13+
- package-ecosystem: nuget
14+
directory: /FSSHTTPWOPIInspector/Source
15+
schedule:
16+
interval: daily
17+
18+
- package-ecosystem: nuget
19+
directory: /FSSHTTPWOPIInspector/Test/WOPIautomation/WOPIautomation
20+
schedule:
21+
interval: daily
22+
23+
- package-ecosystem: nuget
24+
directory: /MAPIInspector/Source
25+
schedule:
26+
interval: daily
27+
28+
- package-ecosystem: nuget
29+
directory: /MAPIInspector/Test/MAPIAutomationTest/MAPIAutomationTest
30+
schedule:
31+
interval: daily

.github/workflows/ci-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches: [ "main" ]
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
build:
1215
runs-on: windows-latest
@@ -18,6 +21,11 @@ jobs:
1821
security-events: write
1922

2023
steps:
24+
- name: Harden Runner
25+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
26+
with:
27+
egress-policy: audit
28+
2129
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2230

2331
- name: Machine setup

.pre-commit-config.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
repos:
2+
- repo: https://github.com/gitleaks/gitleaks
3+
rev: v8.16.3
4+
hooks:
5+
- id: gitleaks
6+
- repo: https://github.com/pre-commit/mirrors-eslint
7+
rev: v8.38.0
8+
hooks:
9+
- id: eslint
10+
- repo: https://github.com/pre-commit/pre-commit-hooks
11+
rev: v4.4.0
12+
hooks:
13+
- id: end-of-file-fixer
14+
- id: trailing-whitespace

0 commit comments

Comments
 (0)