Bump actions/attest-build-provenance from 1.2.0 to 1.3.1 in the github-actions group #622
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
pull_request: | |
paths-ignore: | |
- "**/*.asciidoc" | |
- "**/*.md" | |
- "**/*.png" | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- "**/*.asciidoc" | |
- "**/*.md" | |
- "**/*.png" | |
permissions: | |
contents: read | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- name: lint | |
run: ./gradlew lint | |
- name: Verify OSS compliance | |
run: ./gradlew verifyNoticeFile | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/setup | |
- name: Build | |
run: ./gradlew assemble | |
- name: Test | |
run: ./tests.sh | |
- name: Store test results | |
if: success() || failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: test-results | |
path: | | |
**/build/test-results/testRelease*/TEST-*.xml | |
**/build/test-results/test/TEST-*.xml | |
# The very last job to report whether the Workflow passed. | |
# This will act as the Branch Protection gatekeeper | |
ci: | |
if: always() | |
runs-on: ubuntu-latest | |
needs: | |
- lint | |
- test | |
steps: | |
- id: check | |
uses: elastic/apm-pipeline-library/.github/actions/check-dependent-jobs@current | |
with: | |
needs: ${{ toJSON(needs) }} | |
- run: ${{ steps.check.outputs.isSuccess }} | |
test-release: | |
runs-on: ubuntu-latest | |
if: github.event_name != 'pull_request' | |
permissions: | |
attestations: write | |
contents: write | |
id-token: write | |
env: | |
TARBALL_FILE: dist.tar | |
steps: | |
- id: buildkite-run | |
name: Run Release dry-run | |
uses: elastic/oblt-actions/buildkite/[email protected] | |
with: | |
branch: ${{ github.ref_name }} | |
pipeline: "apm-agent-android-release" | |
token: ${{ secrets.BUILDKITE_TOKEN }} | |
wait-for: true | |
env-vars: | | |
branch_specifier=${{ github.ref_name }} | |
target_specifier=all | |
dry_run=true | |
TARBALL_FILE=${{ env.TARBALL_FILE }} | |
- uses: elastic/oblt-actions/buildkite/[email protected] | |
with: | |
build-number: ${{ steps.buildkite-run.outputs.number }} | |
path: ${{ env.TARBALL_FILE }} | |
pipeline: ${{ steps.buildkite-run.outputs.pipeline }} | |
token: ${{ secrets.BUILDKITE_TOKEN }} | |
- name: untar the buildkite tarball | |
run: tar xvf ${{ env.TARBALL_FILE }} | |
- name: generate build provenance (jar files) | |
uses: actions/attest-build-provenance@534b352d658f90498fd148d231fdbf88f3886a3a # v1.3.1 | |
with: | |
subject-path: "${{ github.workspace }}/**/build/libs/*.jar" | |
- name: generate build provenance (aar files) | |
uses: actions/attest-build-provenance@534b352d658f90498fd148d231fdbf88f3886a3a # v1.3.1 | |
with: | |
subject-path: "${{ github.workspace }}/**/build/outputs/aar/*.aar" |