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

ci: use license action #1103

Merged
merged 1 commit into from
Nov 9, 2023
Merged

ci: use license action #1103

merged 1 commit into from
Nov 9, 2023

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Nov 9, 2023

Use https://github.com/Kong/kong-license/ instead of manually updated secret. 🤖

Also while at it, change the order of steps in tests to utilize Go cache. Without this change repo is not checked out when go is being set up:

Restore cache failed: Dependencies file is not found in /home/runner/work/deck/deck. Supported file pattern: go.sum

@pmalek pmalek self-assigned this Nov 9, 2023
@pmalek pmalek force-pushed the use-license-action branch from ba701d5 to 1e7e4b0 Compare November 9, 2023 16:10
@pmalek pmalek marked this pull request as ready for review November 9, 2023 16:15
@pmalek pmalek requested a review from a team November 9, 2023 16:15
@pmalek pmalek enabled auto-merge (squash) November 9, 2023 16:15
Copy link
Collaborator

@GGabriele GGabriele left a comment

Choose a reason for hiding this comment

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

huge!

@pmalek pmalek merged commit 14f3ed3 into main Nov 9, 2023
33 of 34 checks passed
@pmalek pmalek deleted the use-license-action branch November 9, 2023 17:09
Comment on lines +50 to +51
env:
KONG_LICENSE_DATA: ${{ steps.license.outputs.license }}
Copy link
Member

Choose a reason for hiding this comment

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

see https://github.com/Kong/kong-license#github-action

This shouldn't be necessary to set the ENV explicitly, the action will already have it set (exported). There are multiple occurrences of this.

Unless the explicitness of the current approach is preferred, then this is fine.

Copy link
Member Author

Choose a reason for hiding this comment

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

I forgot about this feature of license action but yes:

Unless the explicitness of the current approach is preferred, then this is fine.

IMHO this might make it easier for the readers that do not know this hidden (albeit documented!) behavior of this action.

AntoineJac pushed a commit that referenced this pull request Jan 23, 2024
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