From 9adc4e940fa2706a37ee2330dbdc84c785e73a47 Mon Sep 17 00:00:00 2001 From: Chibundu Ogbonnia <78664825+Dumken1@users.noreply.github.com> Date: Sun, 28 Jun 2026 08:25:12 +0200 Subject: [PATCH 1/3] Add repository safety checks workflow --- .github/workflows/repository-safety-check.yml | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/repository-safety-check.yml diff --git a/.github/workflows/repository-safety-check.yml b/.github/workflows/repository-safety-check.yml new file mode 100644 index 0000000..cee14c0 --- /dev/null +++ b/.github/workflows/repository-safety-check.yml @@ -0,0 +1,32 @@ +name: Repository safety checks + +on: + pull_request: + branches: + - master + push: + branches: + - master + +permissions: + contents: read + +jobs: + repo-safety-check: + name: repo-safety-check + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Check README exists + run: test -f README.md + + - name: Check for unresolved merge conflict markers + run: | + if grep -R -n -E '^(<<<<<<<|=======|>>>>>>>)' . --exclude-dir=.git; then + echo "Unresolved merge conflict marker found." + exit 1 + fi + echo "No merge conflict markers found." From 828fa8b080a553fe7314499811b80b157a7921ef Mon Sep 17 00:00:00 2001 From: Chibundu Ogbonnia <78664825+Dumken1@users.noreply.github.com> Date: Sun, 28 Jun 2026 09:00:32 +0200 Subject: [PATCH 2/3] Update checkout action to not persist credentials Add option to persist credentials in checkout action --- .github/workflows/repository-safety-check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/repository-safety-check.yml b/.github/workflows/repository-safety-check.yml index cee14c0..8d14cf7 100644 --- a/.github/workflows/repository-safety-check.yml +++ b/.github/workflows/repository-safety-check.yml @@ -19,6 +19,8 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + persist-credentials: false - name: Check README exists run: test -f README.md From 94bac1a56c303abe75c90472ff64d655a4cc3cae Mon Sep 17 00:00:00 2001 From: Chibundu Ogbonnia <78664825+Dumken1@users.noreply.github.com> Date: Sun, 28 Jun 2026 09:14:07 +0200 Subject: [PATCH 3/3] Update repository-safety-check.yml