Repository navigation
ci: keep playerbots out of Core and build the official Packages #632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
aedd8f2
ac33dc7
1381b21
9480304
4038473
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -52,6 +52,32 @@ jobs: | |
| # `lyracore publish` builds this feature set. A default-feature check would omit published reducers. | ||
| - run: cargo check --target wasm32-unknown-unknown -p lyracore-module --features=debug_reducers | ||
|
|
||
| # A Core change that breaks an official Package fails here, before the Package's next publish. | ||
| official-packages: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| # A paired packages PR uses the same branch name; build against it when it exists. | ||
| - id: packages-ref | ||
| env: | ||
| BRANCH: ${{ github.head_ref || github.ref_name }} | ||
| run: | | ||
| if git ls-remote --exit-code --heads https://github.com/LyraCoreProject/packages "refs/heads/$BRANCH" >/dev/null; then | ||
| echo "ref=$BRANCH" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "ref=main" >> "$GITHUB_OUTPUT" | ||
| fi | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| repository: LyraCoreProject/packages | ||
| ref: ${{ steps.packages-ref.outputs.ref }} | ||
| path: official-packages | ||
| persist-credentials: false | ||
| - uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 | ||
| - name: Install the official Packages | ||
| run: for package in official-packages/*/; do ln -s "$PWD/$package" packages/; done | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Require at least one official Package before checking Core. If 🤖 Prompt for AI Agents |
||
| - run: cargo check --target wasm32-unknown-unknown -p lyracore-module --features=debug_reducers | ||
|
|
||
| deploy-scripts: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔒 Security & Privacy | 🟠 Major | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: LyraCoreProject/LyraCore
Length of output: 11185
🏁 Script executed:
Repository: LyraCoreProject/LyraCore
Length of output: 28132
🏁 Script executed:
Repository: LyraCoreProject/LyraCore
Length of output: 26242
🌐 Web query:
actions/checkout v7.0.1 action.yml persist-credentials default local git config💡 Result:
Disable credential persistence for the Core checkout.
The official Package source is compiled into the Core module. Package API checks explicitly allow
include_str!andinclude_bytes!, so Package source can read the workspace’s.git/configat compile time. The Core checkout leaves its token in that configuration by default. The Packages checkout setting does not remove it.Set
persist-credentials: falseon the Core checkout. The existing workflow-levelcontents: readpermission is already the required scope.Suggested fix
📝 Committable suggestion
🧰 Tools
🪛 zizmor (1.30.1)
[warning] 59-60: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false
(artipacked)
🤖 Prompt for AI Agents