diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..85fb3b3 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1 @@ +* @kevinveenbirkenbach diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8d20e2e..c42311a 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,48 @@ version: 2 + updates: - - package-ecosystem: pip - directory: / + - package-ecosystem: "pip" + directories: + - "/" + - "/orchestrator" schedule: - interval: daily + interval: "weekly" + open-pull-requests-limit: 0 + groups: + pip-security: + applies-to: security-updates + patterns: + - "*" + + - package-ecosystem: "github-actions" + directories: + - "/" + schedule: + interval: "weekly" + groups: + actions: + applies-to: version-updates + patterns: + - "*" + + - package-ecosystem: "docker" + directories: + - "/orchestrator" + schedule: + interval: "weekly" + groups: + docker: + applies-to: version-updates + patterns: + - "*" + + - package-ecosystem: "docker-compose" + directories: + - "/orchestrator" + schedule: + interval: "weekly" + groups: + compose: + applies-to: version-updates + patterns: + - "*" diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml new file mode 100644 index 0000000..f6afb6f --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -0,0 +1,48 @@ +name: "🛡️ Score supply chain" +run-name: "${{ github.event_name == 'schedule' && '⏰ ' || '' }}🛡️ Score supply chain" +on: + branch_protection_rule: + schedule: + - cron: '17 3 * * *' + push: + branches: [ "master" ] + +concurrency: + group: scorecard-${{ github.repository }}-${{ github.ref_name }} + cancel-in-progress: true + +permissions: read-all + +jobs: + analysis: + name: 🔍 Scorecard analysis + runs-on: ubuntu-latest + if: github.event.repository.default_branch == github.ref_name + permissions: + security-events: write + id-token: write + + steps: + - name: "📥 Checkout code" + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: "🔬 Run analysis" + uses: ossf/scorecard-action@fa7117db83c52d787ae5a89f350999701505d78e # v2.5.0 + with: + results_file: results.sarif + results_format: sarif + publish_results: true + + - name: "📤 Upload artifact" + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + with: + name: SARIF file + path: results.sarif + retention-days: 5 + + - name: "📊 Upload to code-scanning" + uses: github/codeql-action/upload-sarif@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # v4.39.4 + with: + sarif_file: results.sarif