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

Call reusable action for go version updates #715

Merged
merged 5 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 0 additions & 11 deletions .github/containerscan/allowedlist.yaml

This file was deleted.

8 changes: 8 additions & 0 deletions .github/workflows/.trivyignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# list of CVEs that are currently unfixed
# list of best practies violatied that needs a fix
CIS-DI-0009
DKL-DI-0006
CIS-DI-0005
CIS-DI-0006
CIS-DI-0008
DKL-LI-0003
14 changes: 7 additions & 7 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Workflow
on:

Check warning on line 2 in .github/workflows/actions.yml

View workflow job for this annotation

GitHub Actions / Golang Validation / Yaml Lint

2:1 [truthy] truthy value should be one of [false, true]

Check warning on line 2 in .github/workflows/actions.yml

View workflow job for this annotation

GitHub Actions / Golang Validation / Yaml Lint

2:1 [truthy] truthy value should be one of [false, true]
push:
branches: [main]
pull_request:
Expand Down Expand Up @@ -64,8 +64,7 @@
env:
BASE_IMG: ubuntu:latest
steps:
- name: Set up Go 1.22+
uses: actions/setup-go@v5
- uses: actions/setup-go@v5
with:
go-version: ^1.22
id: go
Expand All @@ -80,9 +79,10 @@
podman save docker.io/library/csm-operator -o /tmp/csm-operator.tar
docker load -i /tmp/csm-operator.tar
- name: Scan controller Image
uses: Azure/container-scan@v0
env:
DOCKLE_HOST: "unix:///var/run/docker.sock"
uses: aquasecurity/trivy-action@0.24.0
with:
image-name: csm-operator
severity-threshold: HIGH
image-ref: csm-operator:latest
severity: 'HIGH'
ignore-unfixed: true
exit-code: '1'
trivyignores: '.github/workflows/.trivyignore'
22 changes: 22 additions & 0 deletions .github/workflows/go-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0

# Reusable workflow to perform go version update on Golang based projects
name: Go Version Update

on:

Check warning on line 12 in .github/workflows/go-version.yaml

View workflow job for this annotation

GitHub Actions / Golang Validation / Yaml Lint

12:1 [truthy] truthy value should be one of [false, true]

Check warning on line 12 in .github/workflows/go-version.yaml

View workflow job for this annotation

GitHub Actions / Golang Validation / Yaml Lint

12:1 [truthy] truthy value should be one of [false, true]
workflow_dispatch:
repository_dispatch:
types: [go-update-workflow]

jobs:
# go version update
go-version-update:
uses: dell/common-github-actions/.github/workflows/go-version-workflow.yaml@main
name: Go Version Update
secrets: inherit
Loading