Skip to content

Commit a6a3093

Browse files
Replace deprecated ::set-output with $GITHUB_OUTPUT (#5527)
## Changes Replace the deprecated `::set-output` workflow command with the recommended `>> $GITHUB_OUTPUT` syntax in `.github/workflows/integration-tests.yml`. The `::set-output` command was [deprecated by GitHub in October 2022](https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/) because it is vulnerable to log injection attacks. The recommended replacement is to write outputs to the `$GITHUB_OUTPUT` environment file. ## Tests - No functional changes; CI workflow syntax validated by GitHub Actions on push. NO_CHANGELOG=true This pull request was AI-assisted by Isaac. Signed-off-by: Hector Castejon Diaz <hector.castejon@databricks.com>
1 parent 63d17a0 commit a6a3093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
run: |
2626
if [ -z "${{ secrets.DECO_WORKFLOW_TRIGGER_APP_ID }}" ] || [ -z "${{ secrets.DECO_TEST_APPROVAL_APP_ID }}" ]; then
2727
echo "Required secrets are missing. User has no access to secrets."
28-
echo "::set-output name=has_token::false"
28+
echo "has_token=false" >> $GITHUB_OUTPUT
2929
else
3030
echo "All required secrets are set. User has access to secrets."
31-
echo "::set-output name=has_token::true"
31+
echo "has_token=true" >> $GITHUB_OUTPUT
3232
fi
3333
3434
trigger-tests:

0 commit comments

Comments
 (0)