-
-
Notifications
You must be signed in to change notification settings - Fork 748
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: validcube <pun.butrach@gmail.com>
Signed-off-by: validcube <pun.butrach@gmail.com>
Signed-off-by: validcube <pun.butrach@gmail.com>
@@ -63,3 +65,14 @@ jobs: | |||
KEYSTORE_ENTRY_PASSWORD: ${{ secrets.KEYSTORE_ENTRY_PASSWORD }} | |||
run: | | |||
npx semantic-release | |||
|
|||
- name: Find APK file | |||
id: find_apk |
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.
Why is the step given an ID?
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.
This is a placeholder from GitHub Copliot inline code suggestions, can be remove.
- 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 }} |
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.
Can these both steps be merged into one artifact attestation step?
👋 It can, but I've trouble getting the wildcard to work. Will try again
later.
…On Thu, Nov 14, 2024, 2:57 AM oSumAtrIX ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In .github/workflows/release.yml
<#2315 (comment)>
:
> + - 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: ***@***.***
+ with:
+ subject-path: ${{ env.APK_LOCATION }}
Can these both steps be merged into one artifact attestation step?
—
Reply to this email directly, view it on GitHub
<#2315 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWGPSOCHH3UMPDQPE2JMUB32AOVMJAVCNFSM6AAAAABRW2CEYSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDIMZUGI4DMNZYGI>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
Wouldn't *.apk work? |
I've tried that in
9024539
but that doesn't seem to work so I add additional steps to finding the APK.
I might be doing something wrong, if it is, lmk!
…On Thu, Nov 14, 2024, 7:25 AM oSumAtrIX ***@***.***> wrote:
Wouldn't *.apk work?
—
Reply to this email directly, view it on GitHub
<#2315 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWGPSODJQYC23UIBHGYURHT2APUX3AVCNFSM6AAAAABRW2CEYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZVGA4TMMRTHE>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no suggestions.
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.