Skip to content

build(deps): Bump slsa-framework/slsa-github-generator from 1.9.0 to 1.10.0 #1731

build(deps): Bump slsa-framework/slsa-github-generator from 1.9.0 to 1.10.0

build(deps): Bump slsa-framework/slsa-github-generator from 1.9.0 to 1.10.0 #1731

Workflow file for this run

#
# Copyright 2021 The Sigstore Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: CI Validate
on:
push:
paths:
- 'ceremony/**'
- 'repository/**'
pull_request:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
with:
fetch-depth: 2
- run: |
echo "REPO=$(pwd)/repository" >> $GITHUB_ENV
echo "CDN_REPO=https://tuf-repo-cdn.sigstore.dev" >> $GITHUB_ENV
echo "CDN_PREPROD_REPO=https://tuf-preprod-repo-cdn.sigstore.dev" >> $GITHUB_ENV
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
with:
go-version-file: './go.mod'
check-latest: true
- name: install deps
run: |
sudo apt-get install libpcsclite-dev
curl -fsO https://developers.yubico.com/PIV/Introduction/piv-attestation-ca.pem
- name: build
run: go build -o verify ./cmd/verify/
- name: build
run: go build -o tuf -tags=pivkey ./cmd/tuf
- name: verify local published repository
run: ./verify repository --repository $REPO --root $(pwd)/ceremony/2021-06-18/repository/root.json
- name: verify CDN remote published repository
run: ./verify repository --repository $CDN_REPO --root $(pwd)/ceremony/2021-06-18/repository/root.json
- name: verify CDN preprod remote published repository
run: ./verify repository --repository $CDN_PREPROD_REPO --root $(pwd)/ceremony/2021-06-18/repository/root.json
- name: verify staged ceremony changes
run: |
set -euo pipefail
export CHANGED=$(git diff --name-only HEAD^ HEAD ceremony/20* | grep ".*staged.*" | head -1)
echo "$CHANGED"
if [ -n "$CHANGED" ]; then
export REPO=$(echo "$CHANGED" | cut -d/ -f 1-2)
./verify repository --repository "$REPO" --staged true
fi