Repository navigation
57 lines (51 loc) · 1.58 KB
/
Copy pathechoes.yml
File metadata and controls
57 lines (51 loc) · 1.58 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
---
name: echoes
"on":
pull_request:
permissions:
contents: read
concurrency:
group: echoes-${{ github.event.pull_request.number }}
cancel-in-progress: true
# Prepares one review per workspace with no write token, so fork pull requests
# are scanned too. echoes-post.yml posts the reviews.
jobs:
scan:
name: Echoes ${{ matrix.name }}
runs-on: ubuntu-26.04
timeout-minutes: 20
strategy:
fail-fast: false
# Every Cargo workspace, since a scan reads only the one around its cwd.
# echoes-post.yml lists the same names.
matrix:
include:
- name: root
cwd: .
- name: fuzz
cwd: fuzz
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: LucaCappelletti94/cargo-echoes@9d3e3917cbfde54b75a50204df645e33d8274b59 # v1.11.0
with:
cwd: ${{ matrix.cwd }}
version: 0.10.2
threshold: 2
min-tokens: 0
functions: true
fn-min-tokens: 30
context-blocks: true
context-min-tokens: 30
all-targets: true
max-comments: 20
pr-number: ${{ github.event.pull_request.number }}
mode: prepare
payload: ${{ runner.temp }}/echoes-payload
- uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
with:
name: echoes-payload-${{ matrix.name }}
path: ${{ runner.temp }}/echoes-payload
retention-days: 7
if-no-files-found: error