forked from Jellyfish-AI/jf_agent
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.56 KB
/
Copy pathendor.yml
File metadata and controls
39 lines (39 loc) · 1.56 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
name: Endor Labs Dependency Scan
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch: {}
jobs:
scan:
permissions:
contents: read # Used to check out a private repository
id-token: write # Used for keyless authentication with Endor Labs
issues: write # Required to automatically comment on PRs for new policy violations
pull-requests: write # Required to automatically comment on PRs for new policy violations
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Install pre-reqs
run: pip install --user uv
- name: Endor Labs Scan Pull Request
if: github.event_name == 'pull_request'
uses: endorlabs/github-action@v1.1.12 # Endor uses immutable releases so hash pinning not required
with:
namespace: "jellyfish" # Replace with your Endor Labs tenant namespace
scan_dependencies: true
scan_secrets: false
pr: true
pr_baseline: "master"
github_token: ${{ secrets.GITHUB_TOKEN }} # Required for PR comments on new policy violations
additional_args: "--exit-on-policy-warning"
- name: Endor Labs Scan Push to main
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
uses: endorlabs/github-action@v1.1.12 # Endor uses immutable releases so hash pinning not required
with:
namespace: "jellyfish" # Replace with your Endor Labs tenant namespace
scan_dependencies: true
scan_secrets: false
pr: false