diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3d982137384..109d2d5c148d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -159,9 +159,10 @@ jobs: python tests/challenges/utils/build_current_score.py env: CI: true - PROXY: ${{ secrets.PROXY }} - AGENT_MODE: ${{ secrets.AGENT_MODE }} - AGENT_TYPE: ${{ secrets.AGENT_TYPE }} + PROXY: ${{ github.event_name == 'pull_request_target' && secrets.PROXY || '' }} + AGENT_MODE: ${{ github.event_name == 'pull_request_target' && secrets.AGENT_MODE || '' }} + AGENT_TYPE: ${{ github.event_name == 'pull_request_target' && secrets.AGENT_TYPE || '' }} + OPENAI_API_KEY: ${{ github.event_name == 'pull_request' && secrets.OPENAI_API_KEY || '' }} PLAIN_OUTPUT: True - name: Upload coverage reports to Codecov