Skip to content

Commit 94d2fbb

Browse files
committed
improve github actions security
- pin cancel-workflow-action to a specific SHA, since it has access to a GITHUB_TOKEN - remove codecov token from action, since it's not needed for public repos
1 parent 7a077bb commit 94d2fbb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030

3131
steps:
3232
- name: Cancel previous
33-
uses: styfle/cancel-workflow-action@0.8.0
33+
uses: styfle/cancel-workflow-action@89f242ee29e10c53a841bfe71cc0ce7b2f065abc #0.9.0
3434
with:
3535
access_token: ${{ github.token }}
3636

@@ -72,5 +72,3 @@ jobs:
7272
- name: Upload coverage to Codecov
7373
if: ${{ matrix.update-coverage }}
7474
uses: codecov/codecov-action@v1
75-
with:
76-
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)