1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
---
name: echoes-post
"on":
workflow_run: # zizmor: ignore[dangerous-triggers] the job reads only the scan's payload
workflows:
types:
permissions:
# This job holds a write token, so it never checks out or runs pull request
# code. The action posts only to the open pull request whose head the scan built.
jobs:
post:
name: Post ${{ matrix.name }}
if: >-
github.event.workflow_run.event == 'pull_request' &&
github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-26.04
timeout-minutes: 5
permissions:
actions: read
# Resolving the review threads of copies that are gone needs contents: write.
contents: write
pull-requests: write
strategy:
fail-fast: false
# The workspace names of the matrix in echoes.yml.
matrix:
name:
- root
- fuzz
steps:
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: echoes-payload-${{ matrix.name }}
path: ${{ runner.temp }}/echoes-payload
run-id: ${{ github.event.workflow_run.id }}
github-token: ${{ github.token }}
- uses: LucaCappelletti94/cargo-echoes@9d3e3917cbfde54b75a50204df645e33d8274b59 # v1.11.0
with:
mode: post
payload: ${{ runner.temp }}/echoes-payload
max-comments: 20