Files
egui/.github/workflows/preview_comment.yml
Dylan M. Taylor 0965b68bdc ci: lock workflow actions through an actions.lock lockfile
Mutable action tags are a supply-chain risk: a moved tag runs different code
without a diff. Every workflow action is now pinned through
.github/workflows/actions.lock, and CI verifies the lockfile so an out-of-sync
or tampered one fails instead of running.
2026-11-12 10:04:46 -05:00

28 lines
812 B
YAML

name: preview_comment.yml
on:
pull_request_target:
types: [opened]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Harden runner
uses: step-security/harden-runner@v2.22.4
with:
egress-policy: audit
- name: Comment PR
uses: step-security/actions-comment-pull-request@v3.0.2
env:
URL_SLUG: ${{ github.event.number }}-${{ github.head_ref }}
with:
message: |
Preview is being built...
Preview will be available at https://egui-pr-preview.github.io/pr/${{ env.URL_SLUG }}
View snapshot changes at [kitdiff](https://rerun-io.github.io/kitdiff/?url=${{ github.event.pull_request.html_url }})
comment-tag: 'egui-preview'