Skip to content

use rockylinux to baseImage,Fixed drbd minor version not being recognized correctly #179

use rockylinux to baseImage,Fixed drbd minor version not being recognized correctly

use rockylinux to baseImage,Fixed drbd minor version not being recognized correctly #179

Workflow file for this run

name: HwameiStor PR
on:
pull_request:
branches:
- main
paths:
- "pkg/**"
- "test/**"
jobs:
pr-test:
runs-on: ["vsphere"]
timeout-minutes: 180
steps:
- name: delete
run: |
sudo rm -rf rm -rf /github/actions-runner/_work/hwameistor-operator/hwameistor-operator/_build
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Remove old Go version
run: sudo rm -rf /usr/local/go
- name: Install Go
run: |
wget https://golang.org/dl/go1.22.7.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.22.7.linux-amd64.tar.gz
echo "export PATH=\$PATH:/usr/local/go/bin" >> ~/.bashrc
source ~/.bashrc
go version
- name: Install gosec
run: |
source ~/.bashrc
go install github.com/securego/gosec/v2/cmd/gosec@latest
echo "gosec installed"
gosec --version
- name: Run gosec security scan
run: |
source ~/.bashrc
gosec -severity high -confidence high ./... || exit 1
- name: pr test
env:
E2E_TESTING_LEVEL: "pr-e2e"
run: make pr-test