Skip to content

Api serverless

Api serverless #72

name: build-performance-test-runner
on:
push:
branches:
- main
paths:
- "tests/performance/**"
pull_request_target:
paths:
- "tests/performance/**"
jobs:
select-environment:
runs-on: ubuntu-latest
environment: ${{ github.event_name == 'push' && 'secrets' || 'restricted' }}
steps:
- name: Approved
run: echo "Build approved, environment selected"
compute-tags:
needs: select-environment
runs-on: ubuntu-latest
permissions:
contents: read # This is required for actions/checkout
outputs:
tags: ${{ steps.get_tag.outputs.TAGS }}
steps:
- if: ${{ !startsWith(github.event_name, 'pull_request') }}
name: Get the latest tag
id: get_tag
run: |
{
echo 'TAGS<<EOF'
echo "${{ github.sha }}"
echo "${{ github.ref_name}}"
echo EOF
} >> "$GITHUB_OUTPUT"
build-perf-test-runner:

Check failure on line 40 in .github/workflows/build-performance-test-runner.yaml

View workflow run for this annotation

GitHub Actions / build-performance-test-runner

Invalid workflow file

The workflow is not valid. .github/workflows/build-performance-test-runner.yaml (Line: 40, Col: 3): Error calling workflow 'kyma-project/test-infra/.github/workflows/image-builder.yml@main'. The nested job 'build-image' is requesting 'contents: read', but is only allowed 'contents: none'.
needs: compute-tags
permissions:
id-token: write # This is required for requesting the JWT token
uses: kyma-project/test-infra/.github/workflows/image-builder.yml@main # Usage: kyma-project/test-infra/.github/workflows/image-builder.yml@main
with:
name: performance-test-runner
dockerfile: Dockerfile
context: tests/performance
tags: ${{ needs.compute-tags.outputs.tags }}