Skip to content

Commit eec731e

Browse files
committed
Disable coveralls job if the needed secrets aren’t available
For security, GitHub Actions does not make secrets available to pull requests from external contributors, so the coveralls job was always failing for those PRs. Disable this job when secrets are not available. Signed-off-by: Anders Kaseorg <andersk@mit.edu>
1 parent 0320fd4 commit eec731e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ jobs:
7070
make flake8
7171
make black
7272
coveralls:
73+
if: ${{ github.secret_source == 'Actions' }}
7374
runs-on: ubuntu-22.04
7475
environment: CI
7576
steps:

0 commit comments

Comments
 (0)