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

Deprecate secrets #4235

Merged
merged 4 commits into from
Oct 24, 2024
Merged

Deprecate secrets #4235

merged 4 commits into from
Oct 24, 2024

Conversation

qwerty287
Copy link
Contributor

@qwerty287 qwerty287 commented Oct 20, 2024

Deprecate the secrets directive completely.

Closes #4015

@qwerty287 qwerty287 added refactor delete or replace old code pipeline-config related to pipeline config files (.yaml) labels Oct 20, 2024
@qwerty287 qwerty287 added this to the 3.0.0 milestone Oct 20, 2024
@qwerty287 qwerty287 requested a review from a team October 20, 2024 06:39
@zc-devs
Copy link
Contributor

zc-devs commented Oct 20, 2024

replaces and closes #4218

Are you going to backport this PR?

Anyway, it is not a replacement, because it says "in 3.0 you can still use secrets, but in 4.0 it will be removed".
And in my PR I warn people "you use lower-cased secret, which currently upper-cased; it won't be in 3.0, therefore those steps will fail (very?) likely". Which technically is not changed pipeline syntax, but result is the same from user's point of view.

@qwerty287
Copy link
Contributor Author

yeah ok removed that part again

@woodpecker-bot
Copy link
Contributor

woodpecker-bot commented Oct 20, 2024

Deployment of preview was torn down

Copy link

codecov bot commented Oct 20, 2024

Codecov Report

Attention: Patch coverage is 7.69231% with 12 lines in your changes missing coverage. Please review.

Project coverage is 26.49%. Comparing base (ddd55ee) to head (1b89488).
Report is 17 commits behind head on main.

Files with missing lines Patch % Lines
pipeline/frontend/yaml/linter/linter.go 7.69% 11 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4235      +/-   ##
==========================================
+ Coverage   26.47%   26.49%   +0.02%     
==========================================
  Files         376      377       +1     
  Lines       27465    27448      -17     
==========================================
+ Hits         7270     7271       +1     
+ Misses      19530    19511      -19     
- Partials      665      666       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zc-devs
Copy link
Contributor

zc-devs commented Oct 20, 2024

Which technically is not changed pipeline syntax, but result is the same from user's point of view.

So, you could just remove secrets in 3.0 and warn in 2.7.
#3960 (comment)

@pat-s
Copy link
Contributor

pat-s commented Oct 20, 2024

So, you could just remove secrets in 3.0 and warn in 2.7.

If you mean 2.7.2 etc: I think many users are sticking with 2.7.0 due to the breaking changes in 2.7.1+, so they won't ever see warnings in 2.7.2.

@qwerty287
Copy link
Contributor Author

I'd also rather deprecate in v3 and remove in v4

@zc-devs
Copy link
Contributor

zc-devs commented Oct 20, 2024

If you mean 2.7.2

Yep

many users are sticking with 2.7.0 due to the breaking changes in 2.7.1+, so they won't ever see warnings in 2.7.2

Sad

I'd also rather deprecate in v3 and remove in v4

Sure, it was just thing to consider.

@qwerty287 qwerty287 merged commit 49e4077 into woodpecker-ci:main Oct 24, 2024
6 of 7 checks passed
@qwerty287 qwerty287 deleted the dep-sec branch October 24, 2024 05:36
@woodpecker-bot woodpecker-bot mentioned this pull request Oct 25, 2024
1 task
@woodpecker-bot woodpecker-bot mentioned this pull request Dec 14, 2024
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pipeline-config related to pipeline config files (.yaml) refactor delete or replace old code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants