Skip to content

Commit 803ccda

Browse files
Resolving trunk GH actions errors
1 parent fde8bfb commit 803ccda

File tree

3 files changed

+37
-10
lines changed

3 files changed

+37
-10
lines changed

.github/workflows/test-pipeline.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

1616
- name: Set up Python 3.11
17-
uses: actions/setup-python@v4
17+
uses: actions/setup-python@v5
1818
with:
1919
python-version: "3.11"
2020
cache: 'pip'
@@ -29,7 +29,7 @@ jobs:
2929
make test-coverage
3030
3131
- name: Upload test results
32-
uses: actions/upload-artifact@v3
32+
uses: actions/upload-artifact@v4
3333
with:
3434
name: test-results
3535
path: |
@@ -39,7 +39,7 @@ jobs:
3939
performance-results/
4040
4141
- name: Upload coverage to Codecov
42-
uses: codecov/codecov-action@v3
42+
uses: codecov/codecov-action@v4
4343
with:
4444
file: ./coverage.xml
4545
fail_ci_if_error: true
@@ -49,10 +49,10 @@ jobs:
4949
needs: test
5050

5151
steps:
52-
- uses: actions/checkout@v3
52+
- uses: actions/checkout@v4
5353

5454
- name: Set up Python 3.11
55-
uses: actions/setup-python@v4
55+
uses: actions/setup-python@v5
5656
with:
5757
python-version: "3.11"
5858
cache: 'pip'
@@ -67,7 +67,7 @@ jobs:
6767
make test-distributed
6868
6969
- name: Upload distributed test results
70-
uses: actions/upload-artifact@v3
70+
uses: actions/upload-artifact@v4
7171
with:
7272
name: distributed-test-results
7373
path: distributed-test-results/

.github/workflows/trunk-check.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ jobs:
1313

1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
1717
with:
1818
fetch-depth: 1
1919

2020
- name: Set up Python 3.11
21-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: "3.11"
2424
cache: "pip"
2525

2626
- name: Cache Trunk
27-
uses: actions/cache@v3
27+
uses: actions/cache@v4
2828
with:
2929
path: ~/.cache/trunk
3030
key: trunk-${{ runner.os }}-${{ hashFiles('.trunk/trunk.yaml') }}

docs/SECURITY.md

+27
Original file line numberDiff line numberDiff line change
@@ -316,3 +316,30 @@ For security concerns, contact:
316316
- Emergency Contact: [INSERT EMERGENCY CONTACT]
317317

318318
Remember: Security is everyone's responsibility. Stay vigilant and report any concerns promptly.
319+
320+
# Security Guide
321+
322+
## Automated Security Checks
323+
324+
We use several automated tools to ensure code security:
325+
326+
### Trunk Security Scanning
327+
328+
Our Trunk configuration includes security-focused tools:
329+
330+
- **trufflehog**: Scans for secrets and sensitive data
331+
- Runs on all PRs and pushes
332+
- Ignores test files and documentation
333+
- Configured to detect various token formats
334+
335+
- **bandit**: Python security linter
336+
- Checks for common security issues
337+
- Custom rules for our codebase
338+
- Integrated with CI/CD
339+
340+
- **git-diff-check**: Prevents accidental commits of sensitive data
341+
- Runs pre-commit
342+
- Checks for large binary files
343+
- Validates line endings
344+
345+
See [.trunk/README.md](../.trunk/README.md) for security tool configuration.

0 commit comments

Comments
 (0)