<!-- Add the related story/sub-task/bug number, like Resolves #123, or remove if NA --> **Related issue:** Resolves #41198 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated GitHub Actions dependencies to latest stable versions across CI/CD workflows for improved reliability, security, and performance. * Enhanced build provenance attestation configuration for macOS, Linux, and Windows builds. * **Security** * Strengthened workflow validation by removing override exception for build artifact version mismatch rules, ensuring stricter security compliance. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
# This workflow can be used to test DB upgrades between two Fleet versions.
|
|
name: DB upgrade test
|
|
|
|
on:
|
|
workflow_dispatch: # allow manual action
|
|
inputs:
|
|
from-version:
|
|
description: "Docker tag of Fleet starting version, e.g. 'v4.64.2'"
|
|
required: true
|
|
type: string
|
|
to-version:
|
|
description: "Docker tag of Fleet version to upgrade to, e.g. 'rc-minor-fleet-v4.65.0'"
|
|
required: true
|
|
type: string
|
|
|
|
defaults:
|
|
run:
|
|
# fail-fast using bash -eo pipefail. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
|
|
shell: bash
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
run-db-upgrade-test:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout Code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install Go
|
|
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
|
|
with:
|
|
go-version-file: 'go.mod'
|
|
|
|
- name: Run upgrade test
|
|
run: |
|
|
cd test/upgrade
|
|
FLEET_VERSION_A=${{ github.event.inputs.from-version }} FLEET_VERSION_B=${{ github.event.inputs.to-version }} go test -v
|