Harden repository-configured output paths (#5202) #4193
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Changelog Fragments | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'CHANGELOG.md' | |
| - 'changelog.d/**' | |
| - 'tools/CodeIndex.Changelog/**' | |
| - '.codex/workflows/changelog-fragment.md' | |
| - '.codex/workflows/release-changelog.md' | |
| - '.codex/workflows/README.md' | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - 'CHANGELOG.md' | |
| - 'changelog.d/**' | |
| - 'tools/CodeIndex.Changelog/**' | |
| - '.codex/workflows/changelog-fragment.md' | |
| - '.codex/workflows/release-changelog.md' | |
| - '.codex/workflows/README.md' | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.run_id }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| permissions: | |
| contents: read | |
| jobs: | |
| check: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Set up .NET | |
| uses: actions/setup-dotnet@9a946fdbd5fb07b82b2f5a4466058b876ab72bb2 # v5.3.0 | |
| with: | |
| dotnet-version: | | |
| 8.0.413 | |
| 9.0.301 | |
| cache: true | |
| cache-dependency-path: tools/CodeIndex.Changelog/packages.lock.json | |
| - name: Restore changelog tool dependencies | |
| run: dotnet restore tools/CodeIndex.Changelog/CodeIndex.Changelog.csproj --locked-mode | |
| - name: Validate changelog fragments | |
| run: dotnet run --project tools/CodeIndex.Changelog --no-restore -- check |