Files
fleet/.github/workflows/test-puppet.yml
T
Victor Lyuboslavsky 5550d01611 Fixed ref-version-mismatch zizmor check (#46901)
<!-- 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 -->
2026-06-05 20:39:53 +01:00

61 lines
1.6 KiB
YAML

name: Test Puppet
on:
push:
branches:
- main
- patch-*
pull_request:
paths:
- 'ee/tools/puppet/fleetdm/**'
- '.github/workflows/test-puppet.yml'
workflow_dispatch: # Manual
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id}}
cancel-in-progress: true
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:
test-puppet:
runs-on: macos-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4
with:
egress-policy: audit
- name: Install Puppet Development Kit
run: brew install --cask puppetlabs/puppet/pdk
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
persist-credentials: false
- name: Install Ruby Gems
working-directory: ./ee/tools/puppet/fleetdm/
run: /opt/puppetlabs/pdk/bin/pdk bundle install
- name: Run Tests
working-directory: ./ee/tools/puppet/fleetdm/
run: /opt/puppetlabs/pdk/bin/pdk test unit
- name: Run Rubocop
working-directory: ./ee/tools/puppet/fleetdm/
run: /opt/puppetlabs/pdk/bin/pdk bundle exec rubocop
- name: Run Linter
working-directory: ./ee/tools/puppet/fleetdm/
run: /opt/puppetlabs/pdk/bin/pdk bundle exec puppet-lint .