diff --git a/.github/codeql/codeql-config.yml b/.github/codeql/codeql-config.yml new file mode 100644 index 0000000..ff8bb30 --- /dev/null +++ b/.github/codeql/codeql-config.yml @@ -0,0 +1,8 @@ +name: SecureFix CodeQL config + +queries: + - uses: security-extended + +paths-ignore: + - "**/bin/**" + - "**/obj/**" \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..9f092b5 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,36 @@ +version: 2 +updates: + - package-ecosystem: nuget + directory: "/src/SecureFix.Api" + schedule: + interval: weekly + day: monday + open-pull-requests-limit: 5 + + - package-ecosystem: nuget + directory: "/src/SecureFix.Core" + schedule: + interval: weekly + day: monday + open-pull-requests-limit: 5 + + - package-ecosystem: nuget + directory: "/tests/SecureFix.Tests" + schedule: + interval: weekly + day: monday + open-pull-requests-limit: 5 + + - package-ecosystem: docker + directory: "/" + schedule: + interval: weekly + day: monday + open-pull-requests-limit: 5 + + - package-ecosystem: github-actions + directory: "/.github/workflows" + schedule: + interval: weekly + day: monday + open-pull-requests-limit: 5 diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..6a46834 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,43 @@ +name: CodeQL + +on: + workflow_dispatch: + push: + branches: + - main + - master + pull_request: + branches: + - main + - master + schedule: + - cron: '23 4 * * 1' + +permissions: + actions: read + contents: read + security-events: write + +jobs: + analyze: + name: Analyze C# + runs-on: ubuntu-latest + timeout-minutes: 30 + + steps: + - name: Checkout repository + uses: actions/checkout@v5 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: csharp + config-file: ./.github/codeql/codeql-config.yml + + - name: Autobuild + uses: github/codeql-action/autobuild@v3 + + - name: Perform CodeQL analysis + uses: github/codeql-action/analyze@v3 + with: + upload: false \ No newline at end of file