Skip to content

Commit 65cb3b7

Browse files
committed
fix(ci): update release-please workflow with stricter repo validation
- Add conditions to validate the head repository matches the current repository. - Explicitly specify secrets for RELEASE_PLEASE_APP_ID and RELEASE_PLEASE_APP_PRIVATE_KEY. fix(test): adjust account meta test to use getFirst() - Replace `get(0)` with `getFirst()` for improved clarity and correctness.
1 parent cd6ca66 commit 65cb3b7

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ permissions:
1818

1919
jobs:
2020
release-please:
21-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
21+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_repository.full_name == github.repository }}
2222
uses: sava-software/sava-build/.github/workflows/release-please.yml@main
23-
secrets: inherit
23+
secrets:
24+
RELEASE_PLEASE_APP_ID: ${{ secrets.RELEASE_PLEASE_APP_ID }}
25+
RELEASE_PLEASE_APP_PRIVATE_KEY: ${{ secrets.RELEASE_PLEASE_APP_PRIVATE_KEY }}

ix-proxy/src/test/java/systems/glam/ix/proxy/IxMapperTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ void shouldUseStagingVaultPdaWhenStaging() {
656656
);
657657

658658
final var result = fixSignerAccounts(ix, glamState, glamSigner, true);
659-
expectAccountMeta(result.accounts().get(0), glamSigner, true, false);
659+
expectAccountMeta(result.accounts().getFirst(), glamSigner, true, false);
660660
}
661661

662662
// ===== PDA utilities =====

0 commit comments

Comments
 (0)