Skip to content

Build testing#89

Closed
jake-perkins wants to merge 60 commits into
mainfrom
build-testing
Closed

Build testing#89
jake-perkins wants to merge 60 commits into
mainfrom
build-testing

Conversation

@jake-perkins
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Redundant Secret Name Input

The secret-name input is defined as required but is never used. The action instead determines the secret name based on the environment input, making the secret-name input redundant and confusing.

.github/actions/configure-keystore/action.yml#L10-L13

required: true
secret-name:
description: "The name of the secret in AWS Secrets Manager"
required: true

Fix in CursorFix in Web


Bug: Shell Parsing Error and Missing Expression Syntax

The for key in $keys loop in the "Fetch secret and export as environment variables" step is vulnerable to shell word splitting, which will incorrectly parse JSON keys containing spaces or special characters. Additionally, the if condition for the "Configure Android Keystore" step (if: inputs.platform == 'android') is missing the required ${{ }} expression syntax.

.github/actions/configure-keystore/action.yml#L59-L69

keys=$(echo "$secret_json" | jq -r 'keys[]')
for key in $keys; do
value=$(echo "$secret_json" | jq -r --arg k "$key" '.[$k]')
echo "::add-mask::$value"
echo "$key=$(printf '%s' "$value")" >> "$GITHUB_ENV"
echo "✅ Set secret for key: $key"
done
- name: Configure Android Keystore
if: inputs.platform == 'android'

Fix in CursorFix in Web


Was this report helpful? Give feedback by reacting with 👍 or 👎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants