Skip to content

Add checksum verification for downloaded installation script #19

Add checksum verification for downloaded installation script

Add checksum verification for downloaded installation script #19

Workflow file for this run

name: Continuous Integration
on:
pull_request:
branches:
- main
push:
branches:
- main
permissions:
contents: read
jobs:
test-action:
name: GitHub Actions Test
runs-on: ubuntu-latest
container:
image: adoptopenjdk/openjdk11:latest
steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
- name: Run Instrumentation Action
id: test-action
uses: ./
with:
languages: java
service-name: my-service
api-key: "dummy"
- name: Check If Java Tracing Works
run: |
LOG_FILE=java-output.log
TRACER_INIT_LOG="CI Visibility settings"
# there is currently a problem with Test Visibility in the Java tracer that prevents it from exiting when tracing an "empty" Java process, hence the timeout
# the "true" is needed to not break the build when the timeout is triggered
timeout 10s java -version 2>&1 | tee $LOG_FILE || true
grep -q "$TRACER_INIT_LOG" $LOG_FILE || { echo "Error: Output does not contain tracer initialisation log: $TRACER_INIT_LOG"; exit 1; }