From 6bf5db206c25e80eb684a453b42996aaabd049a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jade=20Angrbo=C3=B0a?= Date: Fri, 8 Apr 2022 23:59:04 -0700 Subject: [PATCH 1/4] Create semgrep.yaml --- .github/workflows/semgrep.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/semgrep.yaml diff --git a/.github/workflows/semgrep.yaml b/.github/workflows/semgrep.yaml new file mode 100644 index 0000000..c9b2c4f --- /dev/null +++ b/.github/workflows/semgrep.yaml @@ -0,0 +1,24 @@ + +--- +name: 🚨 Semgrep Analysis +on: + push: + pull_request: + +jobs: + semgrep: + name: Evaluate code for vulnerabilities + runs-on: ubuntu-latest + # Skip any PR created by dependabot to avoid permission issues + if: (github.actor != 'dependabot[bot]') + + steps: + - name: Set up git repository + uses: actions/checkout@v2 + + - uses: returntocorp/semgrep-action@v1 + with: + config: >- # more at semgrep.dev/explore + p/security-audit + p/secrets + p/golang From 6a83dc1e6a4b1c16975b65fbd0e3e1d9dfa11431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jade=20Angrbo=C3=B0a?= Date: Sat, 9 Apr 2022 00:00:03 -0700 Subject: [PATCH 2/4] Create codeql-analysis.yaml --- .github/workflows/codeql-analysis.yaml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/codeql-analysis.yaml diff --git a/.github/workflows/codeql-analysis.yaml b/.github/workflows/codeql-analysis.yaml new file mode 100644 index 0000000..27d2f10 --- /dev/null +++ b/.github/workflows/codeql-analysis.yaml @@ -0,0 +1,35 @@ +--- +name: 🚨 CodeQL Analysis +on: + push: + pull_request: + +jobs: + codeql: + name: Evaluate code for vulnerabilities + runs-on: ubuntu-latest + + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: ["go"] + + steps: + - name: Set up git repository + uses: actions/checkout@v2 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v1 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v1 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v1 From a1b0373e641481b902407281913be3dc42095667 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jade=20Angrbo=C3=B0a?= Date: Sat, 9 Apr 2022 00:00:29 -0700 Subject: [PATCH 3/4] Create go.yaml --- .github/workflows/go.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/go.yaml diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml new file mode 100644 index 0000000..8b821d9 --- /dev/null +++ b/.github/workflows/go.yaml @@ -0,0 +1,29 @@ +name: Go + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.17 + + - name: Build + run: go build -v ./... + + - name: Test + run: go test -v ./... +© 2022 GitHub, Inc. +Terms +Privacy +Security From fb7f7fac2745671b62885baab4f8fe2f5806ae41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jade=20Angrbo=C3=B0a?= Date: Sat, 9 Apr 2022 00:00:49 -0700 Subject: [PATCH 4/4] Update go.yaml --- .github/workflows/go.yaml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/go.yaml b/.github/workflows/go.yaml index 8b821d9..5a2bd3f 100644 --- a/.github/workflows/go.yaml +++ b/.github/workflows/go.yaml @@ -23,7 +23,3 @@ jobs: - name: Test run: go test -v ./... -© 2022 GitHub, Inc. -Terms -Privacy -Security