From f709d87a60c37b6c7b0444eecc61030de0a7e111 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 18 Aug 2026 06:27:27 -0400 Subject: [PATCH] Harden repository configuration Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .gitattributes | 7 +++++ .github/CODEOWNERS | 4 +++ .github/dependabot.yml | 11 ++++++- .github/workflows/continuous-deployment.yaml | 3 ++ .github/workflows/scorecard.yml | 32 ++++++++++++++++++++ 5 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 .gitattributes create mode 100644 .github/CODEOWNERS create mode 100644 .github/workflows/scorecard.yml diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8f7c470 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +* text=auto eol=lf + +*.gif binary +*.jpeg binary +*.jpg binary +*.png binary +*.webp binary diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS new file mode 100644 index 0000000..b6dc1a0 --- /dev/null +++ b/.github/CODEOWNERS @@ -0,0 +1,4 @@ +# Uncomment and replace this template with the maintainers for a derived project. +# +# * @palewire +# /.github/ @palewire diff --git a/.github/dependabot.yml b/.github/dependabot.yml index daa72cf..89a7fe3 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -9,8 +9,17 @@ updates: directory: "/" schedule: interval: "monthly" + groups: + python-dependencies: + patterns: ["*"] - package-ecosystem: "github-actions" directory: "/" schedule: - interval: "monthly" + interval: "weekly" + day: "monday" + time: "06:00" + timezone: "Etc/UTC" + groups: + github-actions: + patterns: ["*"] diff --git a/.github/workflows/continuous-deployment.yaml b/.github/workflows/continuous-deployment.yaml index 9a56c47..d4b6a75 100644 --- a/.github/workflows/continuous-deployment.yaml +++ b/.github/workflows/continuous-deployment.yaml @@ -1,5 +1,8 @@ name: Continuous deployment +permissions: + contents: read + on: push: pull_request: diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml new file mode 100644 index 0000000..9d86adc --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -0,0 +1,32 @@ +name: Scorecard supply-chain security + +on: + branch_protection_rule: + schedule: + - cron: "17 14 * * 1" + push: + branches: [main] + +permissions: read-all + +jobs: + analysis: + name: Scorecard analysis + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + id-token: write + security-events: write + steps: + - name: Run analysis + uses: ossf/scorecard-action@v2.4.0 + with: + results_file: results.sarif + results_format: sarif + publish_results: true + + - name: Upload results to GitHub code scanning + uses: github/codeql-action/upload-sarif@v4 + with: + sarif_file: results.sarif