Skip to content

Commit 9f531d7

Browse files
authored
fix: Remove AWS credentials action, install AWS CLI directly for R2 (#408)
The aws-actions/configure-aws-credentials action doesn't work with Cloudflare R2 as it tries to use AWS STS. Instead, install AWS CLI directly and use environment variables for R2 credentials.
1 parent 56aeabe commit 9f531d7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/stdlib-r2-upload.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ jobs:
4242
python3.12 --version
4343
python3.14 --version
4444
45-
- name: Configure AWS CLI for R2
46-
uses: aws-actions/configure-aws-credentials@v4
47-
with:
48-
aws-access-key-id: ${{ secrets.R2_ACCESS_KEY_ID }}
49-
aws-secret-access-key: ${{ secrets.R2_SECRET_ACCESS_KEY }}
50-
aws-region: auto
45+
- name: Install AWS CLI
46+
run: |
47+
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
48+
unzip -q awscliv2.zip
49+
sudo ./aws/install --update
50+
aws --version
5151
5252
- name: Generate and upload stdlib registries
5353
env:

0 commit comments

Comments
 (0)