-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.11 KB
/
issue-test.yaml
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
# A workflow that tests this action
name: SARIF issue workflow
on:
pull_request:
branches: [main]
workflow_dispatch:
permissions:
issues: write
jobs:
issue:
runs-on: ubuntu-latest
name: Run the SARIF issue updater
steps:
- name: Harden Runner
uses: step-security/harden-runner@41d3351872a2104cca2e1c0c05eae533d14f3967
with:
egress-policy: block
disable-telemetry: true
allowed-endpoints: >
api.github.com:443
github.com:443
registry.npmjs.org:443
- name: Checkout
uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
- name: Post SARIF findings in the issue
uses: sett-and-hive/sarif-to-issue-action@main # Not pinned, this is a test
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
branch: ${{ github.head_ref }}
sarif-file: ./test/fixtures/odc.sarif
title: "Build artifact: issue-test.yml workflow"
labels: "build,expected"
dry-run: false
odc-sarif: true