Skip to content

Software Composition Analysis (SCA) #362

Software Composition Analysis (SCA)

Software Composition Analysis (SCA) #362

Workflow file for this run

name: pull request ci
on:
pull_request:
branches:
- main
jobs:
tag:
name: get latest tag
runs-on: ubuntu-latest
outputs:
tag: ${{ steps.doit.outputs.new }}
steps:
- uses: actions/checkout@v3
- id: doit
env:
FALLBACK_VERSION: "1.0.0"
run: |
latest=$(git for-each-ref --sort=-creatordate --count 1 --format="%(refname:short)" "refs/tags/v*" | cut -b 2-)
if [[ $latest -eq "" ]]; then
latest=$FALLBACK_VERSION
echo "No tag found, using fallback: $latest"
fi
new=$(echo $latest | awk -F. '{OFS="."; $NF+=1; print $0}')
echo "new=$new" >> $GITHUB_OUTPUT
build_img:
needs: tag
uses: ./.github/workflows/build_image.yml
with:
build-tag: ${{ needs.tag.outputs.tag }}-${{ github.run_id }}-dev
cache-from: |
type=registry,ref=ghcr.io/${{ github.repository }}-builder-cache:latest
type=registry,ref=ghcr.io/${{ github.repository }}-builder-cache:${{ needs.tag.outputs.tag }}-${{ github.run_id }}-dev
tests:
needs: [tag, build_img]
uses: ./.github/workflows/run_tests.yml

Check failure on line 39 in .github/workflows/build_pr.yml

View workflow run for this annotation

GitHub Actions / pull request ci

Invalid workflow file

The workflow is not valid. In .github/workflows/build_pr.yml (Line: 39, Col: 10): Error from called workflow surface-security/surface/.github/workflows/run_tests.yml@14d01d42cf65e574f7b624b1974d954ceffc37aa (Line: 36, Col: 16): Unrecognized named-value: 'env'. Located at position 1 within expression: env.MYSQL_IMAGE In .github/workflows/build_pr.yml (Line: 39, Col: 10): Error from called workflow surface-security/surface/.github/workflows/run_tests.yml@14d01d42cf65e574f7b624b1974d954ceffc37aa (Line: 40, Col: 18): Unrecognized named-value: 'env'. Located at position 1 within expression: env.MYSQL_IMAGE
with:
build-tag: ${{ needs.tag.outputs.tag }}-${{ github.run_id }}-dev
testscleanup:
needs: tests
uses: ./.github/workflows/test_cleanup.yml
integration:
needs: [tests, testscleanup]
uses: ./.github/workflows/integration.yml