From a5bc73d322d34cf576dca0a1d0daf4d0b822f55c Mon Sep 17 00:00:00 2001 From: Chris Carlson Date: Tue, 3 Oct 2023 08:22:30 -0400 Subject: [PATCH] Create pr-validation.yaml --- .github/workflows/pr-validation.yaml | 54 ++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/pr-validation.yaml diff --git a/.github/workflows/pr-validation.yaml b/.github/workflows/pr-validation.yaml new file mode 100644 index 0000000..e43599f --- /dev/null +++ b/.github/workflows/pr-validation.yaml @@ -0,0 +1,54 @@ +name: "Pull Request Validation" + +on: + pull_request: + branches: [ "master" ] + +jobs: + deps: + name: Dependency Review + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Dependency Review + uses: actions/dependency-review-action@v3 + + analyze: + name: Static Code Analysis + runs-on: ubuntu-latest + timeout-minutes: 5 + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'go' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Dependency Review + uses: actions/dependency-review-action@v3 + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + + - name: Autobuild + uses: github/codeql-action/autobuild@v2 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" +