Skip to content

Bump actions/attest-build-provenance from 1.4.1 to 1.4.2 in the github-actions group #638

Bump actions/attest-build-provenance from 1.4.1 to 1.4.2 in the github-actions group

Bump actions/attest-build-provenance from 1.4.1 to 1.4.2 in the github-actions group #638

Workflow file for this run

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@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
with:
subject-path: "${{ github.workspace }}/**/build/libs/*.jar"
- name: generate build provenance (aar files)
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
with:
subject-path: "${{ github.workspace }}/**/build/outputs/aar/*.aar"