Skip to content

fix: Don't use github.var directly#107

Merged
mathbunnyru merged 2 commits into
XRPLF:mainfrom
mathbunnyru:no_direct_github
May 14, 2026
Merged

fix: Don't use github.var directly#107
mathbunnyru merged 2 commits into
XRPLF:mainfrom
mathbunnyru:no_direct_github

Conversation

@mathbunnyru
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the create-issue composite action to avoid interpolating github.* context values directly inside the shell script by passing them through step environment variables first.

Changes:

  • Adds workflow-related GitHub context values to the append step’s env.
  • Replaces direct ${{ github.* }} usage in the generated issue body with shell variable references.
Comments suppressed due to low confidence (1)

create-issue/action.yml:72

  • The workflow-run URL uses invalid Bash parameter expansion syntax (${ ... } with spaces), so this line will trigger bad substitution and fail the composite action when workflow info is appended.
        **Workflow run:** ${ GITHUB_SERVER_URL }/${ GITHUB_REPOSITORY }/actions/runs/${ GITHUB_RUN_ID }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread create-issue/action.yml Outdated
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Comment thread create-issue/action.yml
Comment on lines +56 to +62
GITHUB_WORKFLOW: ${{ github.workflow }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_REF: ${{ github.ref }}
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_SERVER_URL: ${{ github.server_url }}
GITHUB_REPOSITORY: ${{ github.repository }}
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.

Nit: sort this list alphabetically.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

They are sorted in order in which they are used later, which I think is also fine :)

@mathbunnyru mathbunnyru merged commit 36d450d into XRPLF:main May 14, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants