Skip to content
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

add draft-release support #167

Merged
merged 1 commit into from
May 2, 2023
Merged

add draft-release support #167

merged 1 commit into from
May 2, 2023

Conversation

developer-guy
Copy link
Contributor

as we merged slsa-framework/slsa-github-generator#1882, we need to test it requested by @ianlewis and @laurentsimon in slsa-framework/slsa-github-generator#1476. So, this PR aims to create a test for draft-release support.

ISSUE_REPOSITORY: slsa-framework/slsa-github-generator
# WARNING: update build job if CONFIG_FILE changes.
CONFIG_FILE: .github/configs-go/config-ldflags-tag.yml
DEFAULT_VERSION: v34.0.0
Copy link
Collaborator

Choose a reason for hiding this comment

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

please update to v35.0.0. We need unique versions for each e2e tests. v34.0.0 is already taken. You could not have know, we don't have documentation on this :-)

Copy link
Member

Choose a reason for hiding this comment

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

I added some doc on DEFAULT_VERSION to the e2e tests' readme.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, this is really useful!

run: |
set -euo pipefail

./.github/workflows/scripts/e2e-create-release.sh
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think you need to update this file to mark the release as a draft in the API call.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, I added draft release support into the script, thanks.

Copy link
Collaborator

@laurentsimon laurentsimon left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@developer-guy
Copy link
Contributor Author

kindly ping @laurentsimon

Signed-off-by: Batuhan Apaydın <batuhan.apaydin@trendyol.com>
Copy link
Member

@ianlewis ianlewis left a comment

Choose a reason for hiding this comment

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

LGTM

@ianlewis ianlewis merged commit a9cdb7e into slsa-framework:main May 2, 2023
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