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 \ build-essential cmake \
-y -y
shell: bash 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 - name: Install Go
uses: actions/setup-go@v3 uses: actions/setup-go@v3
with: with:
go-version: '1.18.1' go-version: '1.18'
- name: Build CLI - name: Build CLI
run: | run: |
mkdir build mkdir build
@ -26,7 +32,7 @@ runs:
- name: Build hack/pcr-reader - name: Build hack/pcr-reader
run: | run: |
cd hack/pcr-reader/ cd hack/pcr-reader/
go build -buildvcs=false . go build .
echo "$(pwd)" >> $GITHUB_PATH echo "$(pwd)" >> $GITHUB_PATH
export PATH="$PATH:$(pwd)" export PATH="$PATH:$(pwd)"
shell: bash shell: bash

View file

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

View file

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