diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..0d7e9f32 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,32 @@ +name: "CodeQL" + +on: + push: + branches: + - master + schedule: + - cron: "0 7 * * 1" # Mondays at 7:00 AM + +permissions: read-all + +jobs: + analyze: + name: Analyze + runs-on: ubuntu-latest + permissions: + security-events: write + + steps: + - name: Checkout repository + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b + + - name: Initialize CodeQL + uses: github/codeql-action/init@e0e5ded33cabb451ae0a9768fc7b0410bad9ad44 + with: + languages: go + + - name: Autobuild + uses: github/codeql-action/autobuild@e0e5ded33cabb451ae0a9768fc7b0410bad9ad44 + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@e0e5ded33cabb451ae0a9768fc7b0410bad9ad44 \ No newline at end of file diff --git a/CODEOWNERS b/CODEOWNERS new file mode 100644 index 00000000..4c993177 --- /dev/null +++ b/CODEOWNERS @@ -0,0 +1,3 @@ +# Ref: https://docs.github.com/en/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-code-owners + +* @Fei-Guo @helayoty diff --git a/OWNERS b/OWNERS deleted file mode 100644 index 51e65459..00000000 --- a/OWNERS +++ /dev/null @@ -1,8 +0,0 @@ -# See the OWNERS docs at https://go.k8s.io/owners - -approvers: - - Fei-Guo - - helayoty -reviewers: - - cpuguy83 - - mingqishao