Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage sync between sec-lists and s3 bucket #62

Merged
merged 12 commits into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

name: Sync
on:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
on:
permissions:
contents: read
on:

push:
branches: master
jobs:
sync:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read

steps:
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_SYNC_ROLE }}
role-session-name: github-action-sync
aws-region: ${{ secrets.AWS_REGION }}

- name: Checkout code
uses: actions/checkout@v4

- name: Sync content
run: |
sudo apt-get install -y awscli
aws s3 sync . s3://crowdsec-hub --exclude ".git/*" --exclude ".github/*"
1 change: 0 additions & 1 deletion whitelists/benign_bots/cookiebot_ips.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,3 @@
40.91.211.73
40.118.23.197
52.232.29.198