From 60ebd98cf4ee26dd865215a60b83b6cf9b44a9c4 Mon Sep 17 00:00:00 2001 From: Maxwell Date: Fri, 25 Aug 2023 02:42:40 +0000 Subject: [PATCH] replaces gosec with compile check --- .github/workflows/build.yaml | 19 +++++++++++++++++++ .github/workflows/gosec.yaml | 16 ---------------- 2 files changed, 19 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/build.yaml delete mode 100644 .github/workflows/gosec.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..d33e9e4 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,19 @@ +name: Build Check + +on: [push, pull_request] + +jobs: + build: + name: Check Compilation + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.20 + + - name: Compile + run: go build main.go diff --git a/.github/workflows/gosec.yaml b/.github/workflows/gosec.yaml deleted file mode 100644 index 59672b2..0000000 --- a/.github/workflows/gosec.yaml +++ /dev/null @@ -1,16 +0,0 @@ -name: Run Gosec - -on: [push, pull_request] - -jobs: - tests: - runs-on: ubuntu-latest - env: - GO111MODULE: on - steps: - - name: Checkout Source - uses: actions/checkout@v3 - - name: Run Gosec Security Scanner - uses: securego/gosec@master - with: - args: ./... \ No newline at end of file