Skip to content

provide AWS credentials for uploading build dependencies from GitHub Actions #18124

Closed

Description

@kevinushey

#18123 adds a workflow_dispatch workflow (os-build-dependencies-windows.yml) that builds the Windows Boost / SOCI prebuilts consumed by install-dependencies.cmd. The workflow can upload the resulting archives directly to the rstudio-buildtools S3 bucket, but no AWS credentials are currently available to GitHub Actions in this repository, so the upload step is gated behind an upload input that defaults to off.

What's needed

  • An IAM role assumable via GitHub's OIDC provider (token.actions.githubusercontent.com), with its trust policy restricted to this repository (ideally to the os-build-dependencies-windows.yml workflow on main).
  • Permissions: s3:PutObject and s3:PutObjectAcl on arn:aws:s3:::rstudio-buildtools/* (uploads use --acl public-read, matching the existing dependencies/tools/upload-*.sh scripts).
  • The role ARN stored as an Actions secret named AWS_BUILDTOOLS_UPLOAD_ROLE_ARN on this repository (the workflow already declares permissions: id-token: write and uses aws-actions/configure-aws-credentials).

Alternatives considered

  • The repo's existing Actions secrets (CONNECT_API_KEY, OP_SERVICE_ACCOUNT_TOKEN) are not AWS credentials; the 1Password service account was deliberately scoped to e2e secrets and shouldn't be widened.
  • Jenkins has AWS access via withAWS(role: 'build' / 'ide-build'), but those roles are assumed from the Jenkins agents' instance profiles and cannot be exported to GitHub Actions. The Jenkins Windows agents are also VS 2022 only, so they cannot produce the msvc145 prebuilts this workflow exists to build (Update build pipeline to Visual Studio 2026 (remove VS 2026 CI stopgaps from #17850) #17986).

Interim

Until the role exists, run the workflow with upload: false and push the artifacts manually with developer SSO credentials via dependencies/tools/upload-windows-dependencies.sh (added in #18123).

Related: #17986.

Activity

  1. added
    tech debt
    on Jul 2, 2026
  2. kevinushey commented on Jul 3, 2026

    @kevinushey
    CollaboratorAuthor

    Implemented.

  3. added theissue type on Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech debt

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions