Skip to content

Bump dependencies to fix CVE alerts #30

Bump dependencies to fix CVE alerts

Bump dependencies to fix CVE alerts #30

Workflow file for this run

# This workflow runs priviledged e2e tests for untrusted sources (incomming PRs).
name: pr-e2e-tests
on:
pull_request_target:
types: [labeled]
branches:
- main
jobs:
run_e2e_tests:
# IMPORTANT: we require the ok-to-test label before running the test!
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test')
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Install Go
uses: actions/setup-go@v3
with:
go-version: '^1.19'
- name: Checkout
uses: actions/checkout@v3
with:
# INSECURE, but ok thanks to ok-to-test label.
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- id: 'auth'
name: 'Authenticate to Google Cloud'
uses: 'google-github-actions/auth@v0'
with:
workload_identity_provider: 'projects/874174494201/locations/global/workloadIdentityPools/google-cas-issuer-e2e/providers/google-cas-issuer-e2e'
service_account: '[email protected]'
- name: Run e2e tests
run: make e2e
env:
TEST_GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.auth.outputs.credentials_file_path }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: e2e-logs
path: _artifacts/e2e/logs
# remove the ok-to-test label after the e2e test completed
remove-ok-to-test:
name: Remove ok-to-test label
needs:
- run_e2e_tests
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'ok-to-test') && always()
steps:
- name: Remove Label
uses: actions-ecosystem/action-remove-labels@v1
with:
labels: 'ok-to-test'
fail_on_error: 'false'