Skip to content
Open
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
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,23 @@
if: steps.check.outputs.exit_code != '0'
run: exit 1

import-paths:
name: Import Paths
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Enforce base-std/ and base-std-test/ import prefixes
run: |
# Raw src/ or test/ imports must use the public remapping prefixes instead.
bad=$(grep -rn --include="*.sol" -E 'import(\s+\{[^}]*\}\s+from)?\s+"(src|test)/' src/ test/ || true)
if [ -n "$bad" ]; then
echo "Raw src/ or test/ imports found — use base-std/ or base-std-test/ instead:"
echo "$bad"
exit 1
fi

fmt:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: Format
runs-on: ubuntu-latest
steps:
Expand Down
Loading