forked from getmoto/moto
-
Notifications
You must be signed in to change notification settings - Fork 39
Expand file tree
/
Copy pathdata-update_config-managed-rules.yml
More file actions
44 lines (39 loc) · 1.13 KB
/
data-update_config-managed-rules.yml
File metadata and controls
44 lines (39 loc) · 1.13 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
44
# Data Update:
# Config Managed Rules
#
# This Github Action:
# - executes the script that updates the Config Managed Rules that come bundled with Moto
# - creates a PR
#
name: "DataUpdate_ConfigManagedRules"
on:
schedule:
- cron: '00 6 1 * *'
workflow_dispatch:
jobs:
update:
name: Update Config Managed Rules
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'getmoto/moto' }}
permissions:
id-token: write
contents: write
pull-requests: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Pull Config managed rules from AWS
run: |
pip install -r requirements-dev.txt
cd scripts
./pull_down_aws_managed_rules.py
- name: Create PR
uses: peter-evans/create-pull-request@v7
with:
branch: 'chore-update-config-managed-rules-${{ github.run_number }}'
title: 'chore: update Config Managed Rules'
commit-message: 'chore: update Config Managed Rules'