Skip to content

fix: handle dotnet-outdated exit code 3 and unsafe heredoc delimiter in update-dependencies workflow#1162

Merged
AndrewTriesToCode merged 2 commits into
mainfrom
copilot/fix-update-dependencies-job
Jun 25, 2026
Merged

fix: handle dotnet-outdated exit code 3 and unsafe heredoc delimiter in update-dependencies workflow#1162
AndrewTriesToCode merged 2 commits into
mainfrom
copilot/fix-update-dependencies-job

Conversation

Copilot AI commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

The update-dependencies workflow was failing because dotnet outdated --upgrade exits with code 3 when it successfully updates packages. With bash's -e flag active, this aborted the script before writing the closing heredoc delimiter, causing GitHub Actions to error with Invalid value. Matching delimiter not found 'EOF'.

Changes

  • .github/workflows/update-dependencies.yml
    • Append || true to the dotnet outdated invocation to treat exit code 3 as success
    • Replace hardcoded EOF heredoc delimiter with $(openssl rand -hex 16) to prevent future collision if the command output ever contains EOF on a line by itself
- name: Update dependencies
  id: update_deps
  run: |
    DELIMITER=$(openssl rand -hex 16)
    {
      echo "report<<${DELIMITER}"
      dotnet outdated --upgrade --version-lock Major Finbuckle.MultiTenant.slnx || true
      echo "${DELIMITER}"
    } >> "$GITHUB_OUTPUT"

Copilot AI changed the title [WIP] Fix failing GitHub Actions job update-dependencies fix: handle dotnet-outdated exit code 3 and unsafe heredoc delimiter in update-dependencies workflow Jun 23, 2026
Copilot AI requested a review from AndrewTriesToCode June 23, 2026 23:36

@AndrewTriesToCode AndrewTriesToCode left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ok

@AndrewTriesToCode AndrewTriesToCode marked this pull request as ready for review June 25, 2026 02:36
@AndrewTriesToCode AndrewTriesToCode merged commit 7521acf into main Jun 25, 2026
7 checks passed
@AndrewTriesToCode AndrewTriesToCode deleted the copilot/fix-update-dependencies-job branch June 25, 2026 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants