Skip to content

Commit 5533a28

Browse files
ignoring test vulnerabilities
1 parent bc3d17d commit 5533a28

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/coverage.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@ on:
77
jobs:
88
coverage:
99
runs-on: ubuntu-latest
10-
10+
permissions:
11+
contents: read
12+
checks: write
13+
1114
steps:
1215
- name: Checkout code
1316
uses: actions/checkout@v3
14-
1517
- name: Run Jest Coverage Report
1618
uses: step-security/jest-coverage-report-action@fix_RemoveVuln
17-
with:
19+
with:
1820
github-token: ${{ secrets.GITHUB_TOKEN }}
1921
output: report-markdown # Generate markdown output without attaching a comment
20-
2122
- name: Output Jest Coverage Result
2223
run: echo "${{ steps.coverage.outputs.report }}" # Output the coverage report in markdown format

__tests__/example.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ test('adds 1 + 2 to equal 3', () => {
44
});
55

66

7-
test('adds 1 + 2 to equal 4', () => {
8-
expect(2 + 2).toBe(4);
7+
test('adds 2 + 2 to equal 4', () => {
8+
expect(2 + 2).toBe(3);
99
});
1010

0 commit comments

Comments
 (0)