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

fix(release): publish:git after anti-tamper check #1752

Merged

Conversation

gradybarrett
Copy link
Contributor

The anti-tamper check should occur before git publication to prevent
the tag and commit from occurring in case the check fails.

Closes #1751


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@codecov-commenter
Copy link

codecov-commenter commented Apr 9, 2022

Codecov Report

Merging #1752 (770d695) into main (d90284c) will increase coverage by 1.84%.
The diff coverage is 91.62%.

@@            Coverage Diff             @@
##             main    #1752      +/-   ##
==========================================
+ Coverage   88.06%   89.90%   +1.84%     
==========================================
  Files         132      152      +20     
  Lines        5109     6179    +1070     
  Branches     1207     1575     +368     
==========================================
+ Hits         4499     5555    +1056     
- Misses        610      619       +9     
- Partials        0        5       +5     
Impacted Files Coverage Δ
src/cdk/consts.ts 100.00% <ø> (+36.36%) ⬆️
src/dev-env.ts 83.33% <0.00%> (ø)
src/java/index.ts 100.00% <ø> (ø)
src/python/index.ts 100.00% <ø> (ø)
src/release/index.ts 100.00% <ø> (ø)
src/release/publisher.ts 98.85% <ø> (-0.38%) ⬇️
src/release/release-trigger.ts 100.00% <ø> (ø)
src/release/release.ts 95.79% <ø> (-2.06%) ⬇️
src/release/tag-version.ts 86.66% <ø> (ø)
src/release/update-changelog.ts 100.00% <ø> (ø)
... and 184 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ce4ee5...770d695. Read the comment docs.

@gradybarrett gradybarrett force-pushed the gradybarrett/manual-release-anti-tamper-order branch from 64728c3 to 930c70c Compare April 9, 2022 04:45
The anti-tamper check should occur before git publication to prevent
the tag and commit from occurring in case the check fails.

Closes projen#1751
@gradybarrett gradybarrett force-pushed the gradybarrett/manual-release-anti-tamper-order branch from 930c70c to 770d695 Compare April 9, 2022 18:39
Copy link
Contributor

@Chriscbr Chriscbr left a comment

Choose a reason for hiding this comment

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

Thanks @gradybarrett!

@mergify mergify bot merged commit 5f1dd9b into projen:main Apr 11, 2022
@gradybarrett gradybarrett deleted the gradybarrett/manual-release-anti-tamper-order branch April 11, 2022 18:00
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.

bug(release): for manual releases release commits occur despite anti-tamper failure
3 participants