Skip to content

Commit

Permalink
Worlflow selfscan 1.6 improvements (#11)
Browse files Browse the repository at this point in the history
* Update instrumented-scan.yml to use GitHub Action

* Fix namespace def

* Fix namespace variable
  • Loading branch information
darrenpmeyer authored Nov 2, 2023
1 parent 26dec37 commit 6654830
Showing 1 changed file with 29 additions and 16 deletions.
45 changes: 29 additions & 16 deletions .github/workflows/instrumented-scan.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,36 @@
name: Endor Labs AT-ST Self-Scan
on: push
on:
push:
branches:
- workflow-**
- main
pull_request: null

jobs:
endorlabs-setup-and-scan:
endorlabs-scan:
permissions:
contents: read # Required by actions/checkout@v3 to checkout a private repository.
runs-on: ubuntu-latest
env:
DEBUG: 1
ENDOR_API_CREDENTIALS_KEY: ${{ vars.ENDORLABS_API_KEY }}
ENDOR_API_CREDENTIALS_SECRET: ${{ secrets.ENDORLABS_API_SECRET }}
ENDOR_NAMESPACE: ${{ vars.ENDORLABS_TENANT_NAME }}
id-token: write
contents: read
runs-on: ubuntu-22.04
steps:
- name: Checkout Repository
- name: Checkout ATST
uses: actions/checkout@v3
- name: Endor Labs Setup
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install ATST
run: |
python3 -m venv ../.atst ; ../.atst/bin/python3 -m pip -q install --upgrade .
../.atst/bin/endorlabs-atst setup
- name: Endor Labs Host Check
run: endorlabs-atst ctl -- scan --ci-run
python3 -m venv .venv
.venv/bin/python3 -m pip install .
- name: Dependency Scan
uses: endorlabs/github-action@main
with:
namespace: ${{ vars.ENDORLABS_TENANT_NAME }}
enable_pr_comments: true
- name: Create Monitored Version
if: github.event_name == 'push' && (github.ref == 'ref/heads/main' || startsWith(github.ref, 'refs/tags/'))
uses: endorlabs/github-action@main
with:
namespace: ${{ vars.ENDORLABS_TENANT_NAME }}
pr: false

0 comments on commit 6654830

Please sign in to comment.