Skip to content

Commit 69df5c7

Browse files
authored
ci: testing secrets redaction (#6)
Adds a temporary echo step to test redaction of parameters
1 parent 4b8717e commit 69df5c7

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.github/actions/ci/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ inputs:
1717
description: 'The Java distribution to use.'
1818
required: false
1919
default: 'temurin'
20+
echo_test:
21+
required: false
2022

2123
runs:
2224
using: composite
@@ -26,6 +28,10 @@ runs:
2628
with:
2729
distribution: ${{ inputs.java_distribution }}
2830
java-version: ${{ inputs.java_version }}
31+
32+
-name: Echo Test
33+
shell: bash
34+
run: echo ${{ inputs.echo_test }}
2935

3036
- name: Restore dependencies
3137
shell: bash

.github/workflows/java-server-sdk-otel.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,19 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818

19+
- uses: launchdarkly/gh-actions/actions/[email protected]
20+
name: Get secrets
21+
with:
22+
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
23+
ssm_parameter_pairs: '/production/common/releasing/sonatype/username = SONATYPE_USER_NAME,
24+
/production/common/releasing/sonatype/password = SONATYPE_PASSWORD,
25+
/production/common/releasing/android_code_signing/private_key_id = SIGNING_KEY_ID,
26+
/production/common/releasing/android_code_signing/private_key_passphrase = SIGNING_KEY_PASSPHRASE'
27+
s3_path_pairs: 'launchdarkly-releaser/android/code-signing-keyring.gpg = code-signing-keyring.gpg'
28+
1929
- name: Shared CI Steps
2030
uses: ./.github/actions/ci
2131
with:
2232
workspace_path: 'lib/java-server-sdk-otel'
2333
java_version: 8
34+
echo_test: ${{ env.SIGNING_KEY_ID }}

0 commit comments

Comments
 (0)