-
Notifications
You must be signed in to change notification settings - Fork 22
55 lines (50 loc) · 1.53 KB
/
fwf_enumCheck.yml
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
name: FwfEnumCheck
env:
AWS_REGION: eu-central-1
AWS_ROLE: FirewallFactoryGithubPipelineRole
AWS_ACCOUNT: 859220371210
permissions:
id-token: write
contents: read
concurrency: ci-${{ github.ref }}
on:
schedule:
- cron: "0 10 * * 1"
jobs:
deploy_production_main:
name: Check Enums for ManagedRule Groups
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout
uses: actions/checkout@v4.1.1
- name: ☊ Use Node.js
uses: actions/setup-node@v4.0.2
with:
node-version: '21.x'
- name: 💾 Cache Node.js modules
uses: actions/cache@v4.0.2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: 🌐 Install ts-node and typescript globally
run: |
npm i -g typescript ts-node @types/node
npm link typescript
- name: 📦 Install Packages
run: |
npm install
- name: 🔑 Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4.0.2
env:
ACCOUNT_ID: ${{ env.AWS_ACCOUNT }}
with:
role-to-assume: arn:aws:iam::${{ env.ACCOUNT_ID }}:role/${{ env.AWS_ROLE }}
aws-region: ${{ env.AWS_REGION }}
role-session-name: GitHubActionsSession
mask-aws-account-id: false
- name: 🧪 Check Enums for ManagedRule Groups
run: |
ts-node ./workflows/enumcheck.ts