Skip to content

Commit 7d554fb

Browse files
committed
configure OIDC
1 parent cc42b4a commit 7d554fb

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/run-release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
name: Release
22

33
on:
4-
pull_request:
4+
pull_request: # TODO: REMOVE
55
workflow_dispatch:
66
inputs:
77
version-override:
88
type: string
99
required: false
1010
description: 'Optionally specify a custom release version (minor version bump e.g.)'
1111

12+
permissions:
13+
id-token: write
14+
contents: read
15+
1216
jobs:
1317
release:
1418
runs-on: ubuntu-latest
@@ -50,7 +54,7 @@ jobs:
5054
- name: Configure Gradle
5155
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
5256

53-
- name: Configure AWS Credentials
57+
- name: Configure AWS credentials
5458
uses: aws-actions/configure-aws-credentials@v4
5559
with:
5660
role-to-assume: ${{ secrets.PUBLISHING_ROLE_ARN }}
@@ -59,7 +63,7 @@ jobs:
5963
- name: Run release
6064
env:
6165
RELEASE_BUCKET: ${{ secrets.RELEASE_BUCKET }}
62-
PUBLISHING_ROLE_ARN: ${{ secrets.PUBLISHING_ROLE_ARN }}
66+
PUBLISHING_ROLE_ARN: ${{ secrets.PUBLISHING_ROLE_ARN }} # TODO: REMOVE
6367
run: |
6468
./scripts/release.sh
6569

scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
[ -z "$RELEASE_BUCKET" ] && { echo "RELEASE_BUCKET environment variable not set"; exit 1; }
4-
[ -z "$PUBLISHING_ROLE_ARN" ] && { echo "PUBLISHING_ROLE_ARN environment variable not set"; exit 1; }
4+
[ -z "$PUBLISHING_ROLE_ARN" ] && { echo "PUBLISHING_ROLE_ARN environment variable not set"; exit 1; } # TODO: REMOVE
55

66
VERSION=$(git describe --tags --abbrev=0)
77
HEAD_COMMIT=$(git rev-parse HEAD)

0 commit comments

Comments
 (0)