Skip to content

Feature/prediction mode debug #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sean-dowd-nttd
Copy link
Contributor

ensure something is passed in as source-branch (GITHUB_HEAD_REF for PRs and GITHUB_REF without leading refs/heads/) for regular pushes

used by github actions on a closed pull request
@@ -29,10 +33,14 @@
id: predict-next-version
shell: bash
run: |
echo "next-version=$(launch github version predict --source-branch $GITHUB_HEAD_REF)" >> $GITHUB_OUTPUT
source_branch=${{ inputs.source-branch }}

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ inputs.source-branch }
, which may be controlled by an external user.

- name: Increment Tagged Version
shell: bash
if: ${{ inputs.predict-only == 'false' }}
run: |
launch github version apply --source-branch $GITHUB_HEAD_REF
launch github version apply --source-branch ${{ steps.predict-next-version.outputs.next-version }}

Check warning

Code scanning / CodeQL

Code injection Medium

Potential code injection in
${ steps.predict-next-version.outputs.next-version }
, which may be controlled by an external user.
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.

2 participants