Skip to content
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

fix: Update maven helper plugin build #3746

Merged
merged 1 commit into from
Jul 26, 2024
Merged

fix: Update maven helper plugin build #3746

merged 1 commit into from
Jul 26, 2024

Conversation

loosebazooka
Copy link
Contributor

@loosebazooka loosebazooka commented Jul 25, 2024

Summary

Attempt to fix #3663 (comment)

Update the build definition for the maven slsa-hashing-plugin. It seems to be pretty old and slightly misconfigured. @ianlewis @ramonpetgrave64 This might fix the testing issue? I'm not exactly sure how to trigger the original failure though.

If after merging the fix doesn't work, then we will revert.

Testing Process

We were able to partially test the fix locally, but we can't be 100% sure until after merging.
We have an new pre-submit e2e test workflow that we can invoke from within this repo to test the changes, though a more full test should still be invoked from example-package.

Checklist

  • Review the contributing guidelines
  • Add a reference to related issues in the PR description.
  • Update documentation if applicable.
  • Add unit tests if applicable.
  • Add changes to the CHANGELOG if applicable.

@ramonpetgrave64 ramonpetgrave64 changed the title Update maven helper plugin build fix: Update maven helper plugin build Jul 25, 2024
Fix breakages
Add e2e tests for maven

Signed-off-by: Appu Goundan <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
@loosebazooka
Copy link
Contributor Author

@ramonpetgrave64 ramonpetgrave64 merged commit 6f49f01 into slsa-framework:main Jul 26, 2024
74 checks passed
ramonpetgrave64 added a commit that referenced this pull request Jul 26, 2024
Followup to #3746 

Corrects the invocation of slsa-verifier

Signed-off-by: Ramon Petgrave <[email protected]>
@ramonpetgrave64
Copy link
Collaborator

Both this repo's test and example-package's are now passing

ramonpetgrave64 added a commit that referenced this pull request Jul 26, 2024
# Summary

Followup to #3746 

Removes the verify job, which won't work, because the ref will be
incorrect.

-
https://github.com/slsa-framework/slsa-github-generator/actions/runs/10115454784/job/27976327657#step:5:1

```
WARNING: Insecure SLSA_VERIFIER_TESTING is enabled.
Verifying artifact ./target/test-java-project-1.21.97.jar: FAILED: invalid ref: "refs/heads/main": unexpected ref type: "heads"

FAILED: SLSA verification failed: invalid ref: "refs/heads/main": unexpected ref type: "heads"
Error: Process completed with exit code 1.
```

## Testing Process

The e2e test is executed in this PR, which now passes.

## Checklist

- [x] Review the contributing
[guidelines](https://github.com/slsa-framework/slsa-github-generator/blob/main/CONTRIBUTING.md)
- [x] Add a reference to related issues in the PR description.
- [ ] Update documentation if applicable.
- [x] Add unit tests if applicable.
- [ ] Add changes to the
[CHANGELOG](https://github.com/slsa-framework/slsa-github-generator/blob/main/CHANGELOG.md)
if applicable.

---------

Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
ramonpetgrave64 added a commit that referenced this pull request Oct 8, 2024
# Summary

Followup to #3746

Removes the verify job, which won't work, because the ref will be
incorrect.

-
https://github.com/slsa-framework/slsa-github-generator/actions/runs/10115454784/job/27976327657#step:5:1

```
WARNING: Insecure SLSA_VERIFIER_TESTING is enabled.
Verifying artifact ./target/test-java-project-1.21.97.jar: FAILED: invalid ref: "refs/heads/main": unexpected ref type: "heads"

FAILED: SLSA verification failed: invalid ref: "refs/heads/main": unexpected ref type: "heads"
Error: Process completed with exit code 1.
```

## Testing Process

The e2e test is executed in this PR, which now passes.

## Checklist

- [x] Review the contributing
[guidelines](https://github.com/slsa-framework/slsa-github-generator/blob/main/CONTRIBUTING.md)
- [x] Add a reference to related issues in the PR description.
- [ ] Update documentation if applicable.
- [x] Add unit tests if applicable.
- [ ] Add changes to the
[CHANGELOG](https://github.com/slsa-framework/slsa-github-generator/blob/main/CHANGELOG.md)
if applicable.

---------

Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Signed-off-by: Ramon Petgrave <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[e2e]: maven workflow_dispatch main default slsa3
2 participants