Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/forbidden-files.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Files that have been intentionally deleted and should not be re-added.
# This prevents accidentally reviving files during botched merges.
# Add one file path per line (relative to repo root).

beacon_node/beacon_chain/src/otb_verification_service.rs
beacon_node/store/src/partial_beacon_state.rs
22 changes: 22 additions & 0 deletions .github/workflows/test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,27 @@ jobs:
steps:
- name: Check that the pull request is not targeting the stable branch
run: test ${{ github.base_ref }} != "stable"

forbidden-files-check:
name: forbidden-files-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check for forbidden files
run: |
if [ -f .github/forbidden-files.txt ]; then
status=0
while IFS= read -r file || [ -n "$file" ]; do
# Skip comments and empty lines
[[ "$file" =~ ^#.*$ || -z "$file" ]] && continue
if [ -f "$file" ]; then
echo "::error::Forbidden file exists: $file"
status=1
fi
done < .github/forbidden-files.txt
exit $status
fi

release-tests-ubuntu:
name: release-tests-ubuntu
needs: [check-labels]
Expand Down Expand Up @@ -428,6 +449,7 @@ jobs:
needs: [
'check-labels',
'target-branch-check',
'forbidden-files-check',
'release-tests-ubuntu',
'beacon-chain-tests',
'op-pool-tests',
Expand Down
Loading