mirror of
https://github.com/storytold/egui.git
synced 2026-11-19 09:01:37 +01:00
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.
28 lines
812 B
YAML
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'
|
|
|