-
Notifications
You must be signed in to change notification settings - Fork 24
[VC-45002] Upgrade makefile modules to the latest version #717
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
f56afe2
upgrade makefile modules to the latest version
wallrj-cyberark 3fc7c1f
Fix golangci-lint noctx error
wallrj-cyberark 4199e14
Update the repo name
wallrj-cyberark a20f72d
make generate
wallrj-cyberark 950537c
Manually update the repo name in the manually edited govulncheck work…
wallrj-cyberark 71c9cbc
chore(lint): update import grouping for preflight repo in golangci co…
wallrj-cyberark File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| # THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
| # Edit https://github.com/cert-manager/makefile-modules/blob/main/modules/repository-base/base/.github/chainguard/make-self-upgrade.sts.yaml instead. | ||
|
|
||
| issuer: https://token.actions.githubusercontent.com | ||
| subject_pattern: ^repo:jetstack/jetstack-secure:ref:refs/heads/(main|master)$ | ||
|
|
||
| permissions: | ||
| contents: write | ||
| pull_requests: write | ||
| workflows: write |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| # THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
| # Edit https://github.com/cert-manager/makefile-modules/blob/main/modules/repository-base/base/.github/chainguard/renovate.sts.yaml instead. | ||
|
|
||
| issuer: https://token.actions.githubusercontent.com | ||
| subject_pattern: ^repo:jetstack/jetstack-secure:ref:refs/heads/(main|master)$ | ||
|
|
||
| permissions: | ||
| administration: read | ||
| contents: write | ||
| issues: write | ||
| pull_requests: write | ||
| security_events: read | ||
| statuses: write | ||
| workflows: write |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| { | ||
| $schema: 'https://docs.renovatebot.com/renovate-schema.json', | ||
| extends: [ | ||
| 'github>cert-manager/renovate-config:default.json5', | ||
| ], | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| # THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. | ||
| # Edit https://github.com/cert-manager/makefile-modules/blob/main/modules/repository-base/base/.github/workflows/renovate.yaml instead. | ||
|
|
||
| name: Renovate | ||
| on: | ||
| workflow_dispatch: {} | ||
| schedule: | ||
| - cron: '0 2 * * *' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| renovate: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| if: github.repository == 'jetstack/jetstack-secure' | ||
|
|
||
| permissions: | ||
| id-token: write | ||
|
|
||
| steps: | ||
| - name: Fail if branch is not head of branch. | ||
| if: ${{ !startsWith(github.ref, 'refs/heads/') && env.SOURCE_BRANCH != '' && env.SELF_UPGRADE_BRANCH != '' }} | ||
| run: | | ||
| echo "This workflow should not be run on a non-branch-head." | ||
| exit 1 | ||
| - name: Octo STS Token Exchange | ||
| uses: octo-sts/action@e480437973a6f6ac2e9caa40ecabedc870d76395 # v1.0.1 | ||
| id: octo-sts | ||
| with: | ||
| scope: 'jetstack/jetstack-secure' | ||
| identity: renovate | ||
|
|
||
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | ||
| # Adding `fetch-depth: 0` makes sure tags are also fetched. We need | ||
| # the tags so `git describe` returns a valid version. | ||
| # see https://github.com/actions/checkout/issues/701 for extra info about this option | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ steps.octo-sts.outputs.token }} | ||
|
|
||
| - id: go-version | ||
| run: | | ||
| make print-go-version >> "$GITHUB_OUTPUT" | ||
| - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 | ||
| with: | ||
| go-version: ${{ steps.go-version.outputs.result }} | ||
|
|
||
| - name: Self-hosted Renovate | ||
| uses: renovatebot/github-action@7876d7a812254599d262d62b6b2c2706018258a2 # v43.0.10 | ||
| with: | ||
| configurationFile: .github/renovate.json5 | ||
| token: ${{ steps.octo-sts.outputs.token }} | ||
| env: | ||
| RENOVATE_REPOSITORIES: '["${{ github.repository }}"]' | ||
| RENOVATE_ONBOARDING: "false" | ||
| RENOVATE_PLATFORM: "github" | ||
| LOG_LEVEL: "debug" | ||
| RENOVATE_ALLOWED_COMMANDS: '[".*"]' | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,10 @@ | ||
| repo_name := github.com/jetstack/preflight | ||
| repo_name := github.com/jetstack/jetstack-secure | ||
| # TODO(wallrj): This is a hack to allow use the old preflight repo name in the | ||
| # gci section of the golangci-lint config until we can rename the go module. | ||
| # Without this hack, golangci-lint will complain that the | ||
| # github.com/jetstack/preflight imports should be grouped with all the other | ||
| # third-party modules. | ||
| generate-golangci-lint-config: repo_name := github.com/jetstack/preflight | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change to the repo_name should help the new github actions workflows to run, but caused a problem with the golangci-lint (gci) import grouping which also relies on that variable. |
||
|
|
||
| license_ignore := gitlab.com/venafi,github.com/jetstack | ||
|
|
||
|
|
@@ -42,9 +48,9 @@ helm_chart_image_name := quay.io/jetstack/charts/venafi-kubernetes-agent | |
| helm_chart_version := $(VERSION) | ||
| helm_labels_template_name := preflight.labels | ||
|
|
||
| # We skip using the upstream govulncheck targets because we need to customise the workflow YAML | ||
| # We skip using the upstream govulncheck generate target because we need to customise the workflow YAML | ||
| # locally. We provide the targets in this repo instead, and manually maintain the workflow. | ||
| govulncheck_skip := true | ||
| dont_generate_govulncheck := true | ||
|
|
||
| helm_image_name ?= $(oci_preflight_image_name) | ||
| helm_image_tag ?= $(oci_preflight_image_tag) | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wallrj-cyberark will we enable Octo STS in the jetstack repo too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know 😬 would it work? Is it easy to do?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We just have to add it as a github app afaik.
But you need to be admin in the jetstack org to do that...
I asked on teams.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Then I'll merge it and pick your brains about the Octo STS app in teams.