File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 build-and-push :
3030 runs-on : ubuntu-latest-4-cores
3131 timeout-minutes : 30
32+ permissions :
33+ id-token : write
34+ contents : read
3235
3336 strategy :
3437 fail-fast : false
@@ -190,6 +193,16 @@ jobs:
190193 - name : Pull SQRL Docker image
191194 run : docker pull "${{ steps.resolve-image.outputs.image }}"
192195
196+ - name : Configure AWS credentials via OIDC
197+ # Tolerated: PRs from forks cannot mint an OIDC token for this repo's role.
198+ # Such PRs fall back to running without AWS credentials, which is fine for
199+ # every matrix entry except the S3-backed iceberg canary.
200+ continue-on-error : true
201+ uses : aws-actions/configure-aws-credentials@v4
202+ with :
203+ role-to-assume : ${{ secrets.AWS_DEV_GITHUB_ACTION_ROLE }}
204+ aws-region : us-east-1
205+
193206 - name : Run ${{ matrix.example }} Tests
194207 working-directory : ${{ matrix.path }}
195208 env :
@@ -213,9 +226,11 @@ jobs:
213226 for cmd in "${cmds[@]}"; do
214227 echo "::group::Running: $cmd"
215228 docker run -i -p 8888:8888 -p 8081:8081 -p 9092:9092 \
216- -e AWS_ACCESS_KEY_ID="${{ secrets.AWS_ACCESS_KEY_ID }}" \
217- -e AWS_SECRET_ACCESS_KEY="${{ secrets.AWS_SECRET_ACCESS_KEY }}" \
218- -e AWS_REGION="${{ secrets.AWS_REGION }}" \
229+ -e AWS_ACCESS_KEY_ID \
230+ -e AWS_SECRET_ACCESS_KEY \
231+ -e AWS_SESSION_TOKEN \
232+ -e AWS_REGION \
233+ -e AWS_DEFAULT_REGION \
219234 --rm -v "$PWD":/build "$SQRL_IMAGE" $cmd
220235 echo "::endgroup::"
221236 done
You can’t perform that action at this time.
0 commit comments