-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (63 loc) · 2.98 KB
/
pr.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: pr
on:
pull_request:
workflow_dispatch:
push:
branches:
- main
jobs:
secret_check:
name: secret_check
runs-on: ubuntu-latest
steps:
# Checkout your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: for the first ever commit
shell: bash
run: |
curl -sfL 'https://raw.githubusercontent.com/orcasecurity/orca-cli/main/install.sh' | bash -s
orca-cli -p default --api-token ${{ secrets.ORCA_SECURITY_API_TOKEN }} secrets scan --path . --from-commit 03f6689796b4c982812be8b40ba53811830bb164
- name: from-commit no such commit
if: always()
shell: bash
run: |
curl -sfL 'https://raw.githubusercontent.com/orcasecurity/orca-cli/main/install.sh' | bash -s
orca-cli -p default --api-token ${{ secrets.ORCA_SECURITY_API_TOKEN }} secrets scan --path . --from-commit 03f6689796b4c982812be8b40ba53811830bb163
- name: from-commit no such commit
- name: from-commit no commit at all
if: always()
shell: bash
run: |
curl -sfL 'https://raw.githubusercontent.com/orcasecurity/orca-cli/main/install.sh' | bash -s
orca-cli -p default --api-token ${{ secrets.ORCA_SECURITY_API_TOKEN }} secrets scan --path . --from-commit
- name: to-commit
if: always()
shell: bash
run: |
curl -sfL 'https://raw.githubusercontent.com/orcasecurity/orca-cli/main/install.sh' | bash -s
orca-cli -p default --api-token ${{ secrets.ORCA_SECURITY_API_TOKEN }} secrets scan --path . --to-commit 040ffa9afbbcb054ae839b8e56815487522cffae
- name: from-commit to-commit same commit
if: always()
shell: bash
run: |
curl -sfL 'https://raw.githubusercontent.com/orcasecurity/orca-cli/main/install.sh' | bash -s
orca-cli -p default --api-token ${{ secrets.ORCA_SECURITY_API_TOKEN }} secrets scan --path . --from-commit 040ffa9afbbcb054ae839b8e56815487522cffae --to-commit b02f437f1bc43cf8af34cf6d16d47614296230f7
- name: from-commit to-commit oppiste
if: always()
shell: bash
run: |
curl -sfL 'https://raw.githubusercontent.com/orcasecurity/orca-cli/main/install.sh' | bash -s
orca-cli -p default --api-token ${{ secrets.ORCA_SECURITY_API_TOKEN }} secrets scan --path . --from-commit f01d2f6b68821fe3fdae8984fa8cbe68378f1d08 --to-commit 5a7e202bc669aa05353d7f7dd17770950a5f9078
- name: full history
if: always()
shell: bash
run: |
git config --global fetch.prune false
git fetch --all
git reflog
git branch -a
curl -sfL 'https://raw.githubusercontent.com/orcasecurity/orca-cli/main/install.sh' | bash -s
orca-cli -p default --api-token ${{ secrets.ORCA_SECURITY_API_TOKEN }} secrets scan --path . --ignore-git-history-baseline