Skip to content

Commit

Permalink
token
Browse files Browse the repository at this point in the history
  • Loading branch information
stenjo committed Oct 10, 2024
1 parent 6a0b302 commit cf9cd4b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/stryker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ on:
branches:
- main

permissions: read-all
permissions:
contents: read
issues: write
pull-requests: write

jobs:
stryker-js:
Expand Down Expand Up @@ -58,6 +61,7 @@ jobs:
path: stryker.log

- name: Extract stryker score
id: extract-stryker-score
run: |
grep "All files" out > line
awk '{print $4}' line > fullscore
Expand All @@ -70,11 +74,11 @@ jobs:
auth: ${{ steps.app-token.outputs.token }}
gistID: 9ce1ad7d8e9db99796e782b244eefa4a
filename: dora-stryker.json
label: Stryker score
message: ${{ env.stryker-score }}%
label: Mutation Score
message: ${{ steps.extract-stryker-score.outputs.stryker-score }}%
minColorRange: 50
maxColorRange: 90
valColorRange: ${{ env.stryker-score }}
valColorRange: ${{ steps.extract-stryker-score.outputs.stryker-score }}

- name: Upload results
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit cf9cd4b

Please sign in to comment.