Skip to content

Commit f5bfe03

Browse files
authored
Attest binary source
1 parent cbf9409 commit f5bfe03

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
permissions:
2020
id-token: write
21+
contents: read
2122
attestations: write
2223
strategy:
2324
matrix:
@@ -47,13 +48,14 @@ jobs:
4748
cmake -GNinja -Dprotobuf_BUILD_TESTS=OFF ..
4849
ninja -j$(nproc --all)
4950
popd
50-
env:
51-
NDK_TOOLCHAIN: ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64
5251
5352
- name: Compiling aapt2
5453
run: python3 ./build.py --ndk=${{ steps.setup-ndk.outputs.ndk-path }} --abi=${{ matrix.target_arch }} --build="build/${{ matrix.target_arch }}" --protoc=/${{ github.workspace }}/src/protobuf/build/protoc --target aapt2
55-
env:
56-
NDK_TOOLCHAIN: ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64
54+
55+
- name: Generating attestation of the generated aapt2
56+
uses: actions/attest-build-provenance@v2
57+
with:
58+
subject-path: ${{ github.workspace }}/build/${{ matrix.target_arch }}/bin/aapt2
5759

5860
- name: Upload artifacts
5961
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)