Skip to content

Commit c282a20

Browse files
committed
Add workflow to mirror Alpine secdb
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent ec3ea8a commit c282a20

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

.github/workflows/sync.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Mirror Alpine Security database
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 */6 * * *'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
scheduled:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Run sync
20+
run: wget --mirror --no-parent --reject "index.html*" --no-host-directories -P secdb https://secdb.alpinelinux.org/
21+
22+
- name: Commit and push if it changed
23+
run: |-
24+
git config user.name "AboutCode Automation"
25+
git config user.email "automation@aboutcode.org"
26+
git add -A
27+
git commit -m "$(echo -e "Sync latest Alpine secdb\n\nSigned-off-by: AboutCode Automation <automation@aboutcode.org>")" || exit 0
28+
git push

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Various junk and temp files
2+
.DS_Store
3+
*~
4+
.*.sw[po]
5+
.build
6+
.ve
7+
*.bak
8+
var
9+
share
10+
selenium
11+
local
12+
/dist/
13+
/.*cache/
14+
/.venv/
15+
/.python-version
16+
/.pytest_cache/
17+
/scancodeio.egg-info/
18+
*.rdb
19+
*.aof
20+
.vscode
21+
.ipynb_checkpoints

0 commit comments

Comments
 (0)