File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 7373 needs : [ calculate_matrix ]
7474 runs-on : " ${{ matrix.os }}"
7575 timeout-minutes : 360
76+ # The bors environment contains secrets required for elevated workflows (try and auto builds),
77+ # which need to access e.g. S3 and upload artifacts. We want to provide access to that
78+ # environment only on the try/auto branches, which are only accessible to bors.
79+ # This also ensures that PR CI (which doesn't get write access to S3) works, as it cannot
80+ # access the environment.
81+ #
82+ # We only enable the environment for the rust-lang/rust repository, so that rust-lang-ci/rust
83+ # CI works until we migrate off it (since that repository doesn't contain the environment).
84+ environment : ${{ ((github.repository == 'rust-lang/rust' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/auto')) && 'bors') || '' }}
7685 env :
7786 CI_JOB_NAME : ${{ matrix.name }}
7887 CI_JOB_DOC_URL : ${{ matrix.doc_url }}
You can’t perform that action at this time.
0 commit comments