-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 722 Bytes
/
test.yml
File metadata and controls
34 lines (29 loc) · 722 Bytes
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
name: "Test: Infisical secrets check"
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test:
name: Test Infisical secrets check action
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout repo
uses: actions/checkout@v6
- name: Run Infisical secrets check
id: infisical
uses: ./
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ADD_COMMENT: ${{ github.event_name == 'pull_request' }}
- name: Print output
if: always()
run: |
echo "secrets-leaked: ${{ steps.infisical.outputs.secrets-leaked }}"