Skip to content

Commit

Permalink
Call reusable action for go version updates (#715)
Browse files Browse the repository at this point in the history
* add workflow

* Update actions.yml

* update container scan

* update container scan
  • Loading branch information
ChristianAtDell committed Oct 15, 2024
1 parent ec6ee19 commit 508a424
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 18 deletions.
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
Expand Up @@ -64,8 +64,7 @@ jobs:
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 @@ jobs:
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:
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

0 comments on commit 508a424

Please sign in to comment.