Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Withhold the E2E GitHub token from fork PRs

Manav Rathib5e664c692bb
diff --git a/.github/workflows/rust-e2e-test.yml b/.github/workflows/rust-e2e-test.yml
index 3555e39947..fee9e80c17 100644
--- a/.github/workflows/rust-e2e-test.yml
+++ b/.github/workflows/rust-e2e-test.yml
@@ -42,14 +42,12 @@ jobs:
shared-key: rust-cli
save-if: false
- # GITHUB_TOKEN lifts postgresql_embedded's GitHub API rate limit
- # for fetching Postgres binaries (60/hr unauthenticated -> 1000/hr).
- name: Run CLI integration tests
run: cargo test -p ente-rs --features museum --locked
+ # GITHUB_TOKEN lifts GitHub API rate limit when fetching
+ # postgresql_embedded binaries.
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GITHUB_TOKEN: ${{ github.event.pull_request.head.repo.full_name == github.repository && github.token || '' }}
- name: Run E2E suite
run: cargo test -p ente-e2e --features museum --locked
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}