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

Security update kube-lineage to go version 1.22.4 and removed cve's #14

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
b7c7539
chore(deps): Bump the go_modules group across 1 directory with 13 upd…
dependabot[bot] Jul 2, 2024
4f66624
Merge pull request #7 from Avi-Robusta/dependabot/go_modules/go_modul…
Avi-Robusta Jul 2, 2024
00ecb4c
fix release action
Avi-Robusta Jul 2, 2024
bb13050
Merge branch 'master' of https://github.com/Avi-Robusta/kube-lineage
Avi-Robusta Jul 2, 2024
d00e25e
fix github actions
Avi-Robusta Jul 2, 2024
6c8a83f
working version upgraded
Avi-Robusta Jul 2, 2024
51af137
Merge pull request #7 from ytsarev/bump-qps
tohjustin Jul 1, 2023
b301604
Merge pull request #8 from Avi-Robusta/working_version
Avi-Robusta Jul 2, 2024
ebd7d73
fixing git actions
Avi-Robusta Jul 2, 2024
773e372
fixing version
Avi-Robusta Jul 2, 2024
bdbcd91
fixing build
Avi-Robusta Jul 2, 2024
7d86f63
fixing build
Avi-Robusta Jul 2, 2024
93782d1
build v2
Avi-Robusta Jul 2, 2024
0f56888
updated build
Avi-Robusta Jul 2, 2024
578ae8c
build test
Avi-Robusta Jul 2, 2024
9c36990
build fix
Avi-Robusta Jul 2, 2024
a10fedf
build fix
Avi-Robusta Jul 2, 2024
c34aab1
only build for linux now
Avi-Robusta Jul 2, 2024
bad83a0
updating build
Avi-Robusta Jul 2, 2024
530f480
fix release
Avi-Robusta Jul 2, 2024
c5013f9
build fix
Avi-Robusta Jul 2, 2024
016c014
fix credentials
Avi-Robusta Jul 2, 2024
581f0fb
Merge pull request #9 from Avi-Robusta/working_version
Avi-Robusta Jul 2, 2024
4d8459f
Merge pull request #10 from Avi-Robusta/working_version
Avi-Robusta Jul 2, 2024
ba011aa
fixing arm build
Avi-Robusta Jul 2, 2024
eebd8a9
update binaries
Avi-Robusta Jul 3, 2024
f52a447
removed un-needed code
Avi-Robusta Jul 7, 2024
6fbece7
fixing cves
Avi-Robusta Sep 10, 2024
ab3bba2
Merge pull request #12 from Avi-Robusta/docker_cve_fix
Avi-Robusta Sep 10, 2024
c653974
patch crypto
Avi-Robusta Dec 17, 2024
ad8cd74
Merge pull request #13 from Avi-Robusta/patch-crypto
Avi-Robusta Dec 17, 2024
11a94c8
fixing release workflow
Avi-Robusta Dec 17, 2024
1bd4baa
fixing cache issue
Avi-Robusta Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 4 additions & 43 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,50 +16,11 @@ on:
permissions:
contents: read
env:
GO_VERSION: "1.17"
GO_VERSION: "1.22.4"
jobs:
lint:
name: Run linter
runs-on: ubuntu-18.04
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run linter
run: make lint
test:
name: Run tests
runs-on: ubuntu-18.04
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: make test
release-snapshot:
name: Release unversioned snapshot
needs:
- lint
- test
runs-on: ubuntu-18.04
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v2
Expand All @@ -73,5 +34,5 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Release
run: make release-snapshot
- name: Build binary
run: CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage ./cmd/kube-lineage
74 changes: 29 additions & 45 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,68 +5,52 @@ name: release
on:
push:
tags:
- 'v*.*.*'
- "v*" # Trigger on tags that start with 'v', e.g., v1.0.0
release:
types: [created] # Trigger when a GitHub Release is created
workflow_dispatch: # Allow manual triggering
env:
GO_VERSION: "1.17"
GO_VERSION: "1.22.4"
jobs:
lint:
name: Run linter
runs-on: ubuntu-18.04
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run linter
run: make lint
test:
name: Run tests
runs-on: ubuntu-18.04
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run tests
run: make test
release:
name: Release
runs-on: ubuntu-18.04
permissions:
contents: write
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Release
run: make release
- name: Build binary (Unix)
if: matrix.os == 'ubuntu-latest'
run: CGO_ENABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage-${{ matrix.os }}-${{ github.ref_name }} ./cmd/kube-lineage

- name: Build binary (Arm)
if: matrix.os == 'macos-latest'
run: CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage-${{ matrix.os }}-${{ github.ref_name }} ./cmd/kube-lineage

- name: Build binary (Windows)
if: matrix.os == 'windows-latest'
run: CGO_ENABLED=0 GOOS=windows go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o kube-lineage.exe ./cmd/kube-lineage

- name: Upload Release Asset
uses: actions/upload-release-asset@v1.0.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
KREW_GITHUB_TOKEN: ${{ secrets.KREW_GITHUB_TOKEN }}
- name: Update new version for plugin "lineage" in krew-index
uses: rajatjindal/krew-release-bot@v0.0.40
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./kube-lineage-${{ matrix.os }}-${{ github.ref_name }}
asset_name: kube-lineage-${{ matrix.os }}-${{ github.ref_name }}
asset_content_type: application/octet-stream
Loading