Skip to content

Commit

Permalink
Disable coveralls job if the needed secrets aren’t available
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
andersk committed Oct 24, 2024
1 parent 0320fd4 commit eec731e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ jobs:
make flake8
make black
coveralls:
if: ${{ github.secret_source == 'Actions' }}
runs-on: ubuntu-22.04
environment: CI
steps:
Expand Down

0 comments on commit eec731e

Please sign in to comment.