Skip to content

Commit be413ae

Browse files
Potential fix for code scanning alert no. 635: Code injection
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 67e622a commit be413ae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

actions/pr-quality-check/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,11 @@ runs:
156156
'true' && inputs.claude-code-auto-fix-enabled == 'true' &&
157157
github.event.pull_request.head.repo.full_name == github.repository
158158
shell: bash
159+
env:
160+
HAS_SA: ${{ inputs.claude-code-gcp-service-account-key != '' }}
161+
HAS_PROJ: ${{ inputs.claude-code-gcp-project-id != '' }}
159162
run: |
160163
MISSING=""
161-
HAS_SA="${{ inputs.claude-code-gcp-service-account-key != '' }}"
162-
HAS_PROJ="${{ inputs.claude-code-gcp-project-id != '' }}"
163164
if [ "$HAS_SA" != "true" ]; then MISSING="GCP_SERVICE_ACCOUNT_KEY"; fi
164165
if [ "$HAS_PROJ" != "true" ]; then if [ -n "$MISSING" ]; then MISSING="$MISSING, "; fi; MISSING="${MISSING}GCP_PROJECT_ID"; fi
165166
if [ -z "$MISSING" ]; then
@@ -169,7 +170,6 @@ runs:
169170
echo "should-run-claude=false" >> $GITHUB_OUTPUT
170171
echo "missing=$MISSING" >> $GITHUB_OUTPUT
171172
fi
172-
173173
- name: Build details markdown
174174
id: build-details
175175
if:

0 commit comments

Comments
 (0)