Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ permissions:

jobs:
lint:
# Do not run untrusted fork PR code on the self-hosted runner, which has an
# ambient GCP service-account identity available via the instance metadata
# server. Only run on pushes (to main) and PRs originating from this repo.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository

runs-on: self-hosted

Expand Down Expand Up @@ -48,6 +52,9 @@ jobs:
#flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

test:
# See the note on the lint job above: keep untrusted fork PR code off the
# self-hosted runner that holds an ambient GCP service-account identity.
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository

runs-on: self-hosted

Expand Down
Loading