fix: buildvcs unable to fetch vcs information (#228)

This commit is contained in:
Fabian Kammel 2022-06-23 17:52:25 +02:00 committed by GitHub
parent 1dcb6ed142
commit e97eb1fa52
3 changed files with 12 additions and 2 deletions

View File

@ -10,10 +10,16 @@ runs:
build-essential cmake \
-y
shell: bash
# https://github.blog/2022-04-12-git-security-vulnerability-announced/
- name: Mark repository safe
run: |
git config --global --add safe.directory /__w/constellation/constellation
shell: bash
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '1.18.1'
go-version: '1.18'
- name: Build CLI
run: |
mkdir build
@ -26,7 +32,7 @@ runs:
- name: Build hack/pcr-reader
run: |
cd hack/pcr-reader/
go build -buildvcs=false .
go build .
echo "$(pwd)" >> $GITHUB_PATH
export PATH="$PATH:$(pwd)"
shell: bash

View File

@ -13,6 +13,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run Azure E2E test
uses: ./.github/actions/e2e_test
with:

View File

@ -13,6 +13,8 @@ jobs:
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run GCP E2E test
uses: ./.github/actions/e2e_test
with: