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

ci: Release APK GitHub Attestation #2315

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Conversation

validcube
Copy link
Member

@validcube validcube commented Nov 13, 2024

Support GitHub Attestation for attesting the binary, matched SLSA requirements level 1 which provide secure provenance for verification of APK before installing onto devices.

ReVanced Manager is eligible for SLSA Level 2 but we would have to build libaapt.so (and all prebuilts) in the project, but for now, this is out of scope.

@validcube validcube self-assigned this Nov 13, 2024
@validcube validcube marked this pull request as ready for review November 13, 2024 15:57
@@ -63,3 +65,14 @@ jobs:
KEYSTORE_ENTRY_PASSWORD: ${{ secrets.KEYSTORE_ENTRY_PASSWORD }}
run: |
npx semantic-release

- name: Find APK file
id: find_apk
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the step given an ID?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a placeholder from GitHub Copliot inline code suggestions, can be remove.

Comment on lines +69 to +78
- name: Find APK file
id: find_apk
run: |
APK_LOCATION=$(find build/app/outputs/apk/release/ -name "revanced-manager-*.apk")
echo "APK_LOCATION=$APK_LOCATION" >> $GITHUB_ENV

- name: 🛰️ Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-path: ${{ env.APK_LOCATION }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these both steps be merged into one artifact attestation step?

@validcube
Copy link
Member Author

validcube commented Nov 14, 2024 via email

@oSumAtrIX
Copy link
Member

Wouldn't *.apk work?

@validcube
Copy link
Member Author

validcube commented Nov 14, 2024 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.

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.

2 participants