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: oci-copy task triggers unbounded var error when not using AWS creds #1490

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

pastequo
Copy link
Contributor

@pastequo pastequo commented Oct 4, 2024

Some build is failing because of this.

I think the problem is that set -u is set after the function definition but before the function is called

EDIT: I'm talking about this set: https://github.com/konflux-ci/build-definitions/blob/main/task/oci-copy/0.1/oci-copy.yaml#L186
Build is failing because of

/tekton/scripts/script-1-qxwgg: line 11: AWS_ACCESS_KEY_ID: unbound variable

When I'm not providing AWS creds

@openshift-ci openshift-ci bot requested review from chmeliik and ralphbean October 4, 2024 14:26
@pastequo
Copy link
Contributor Author

pastequo commented Oct 4, 2024

I tested my changes in a PR, it fixes my issue. I haven't tested if it introduces regression

@chmeliik
Copy link
Contributor

chmeliik commented Oct 7, 2024

/ok-to-test

Copy link
Contributor

@chmeliik chmeliik 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 fix!

Copy link
Contributor

@chmeliik chmeliik left a comment

Choose a reason for hiding this comment

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

After looking at the rest of the task - would you mind making the same fix for the BEARER_TOKEN variable? I think it has the same problem

@pastequo
Copy link
Contributor Author

pastequo commented Oct 7, 2024

@chmeliik Should be done as well. I haven't checked the rest of the file...

@ralphbean ralphbean added this pull request to the merge queue Oct 7, 2024
Merged via the queue into konflux-ci:main with commit 118d049 Oct 7, 2024
14 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