Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
csestito committed Dec 24, 2024
0 parents commit eeea10a
Show file tree
Hide file tree
Showing 14 changed files with 140,853 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Get PANW Repo Data

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v2 # checkout the repository content

- name: setup python
uses: actions/setup-python@v4
with:
python-version: "3.10" # install the python version needed

- name: install python packages
run: |
python -m pip install --upgrade pip
pip install aiohttp
pip install pan-python
pip install tree-lib
- name: download pan-chainguard
uses: actions/checkout@v3
with:
repository: "PaloAltoNetworks/pan-chainguard"
path: pan-chainguard
token: ${{ secrets.GITHUB_TOKEN }}

- name: CCADB
continue-on-error: true
run: |
curl -sOJ --output-dir latest-certs https://ccadb.my.salesforce-sites.com/ccadb/AllCertificateRecordsCSVFormatv2
curl -sOJ --output-dir latest-certs https://ccadb.my.salesforce-sites.com/mozilla/MozillaIntermediateCertsCSVReport
curl -sOJ --output-dir latest-certs https://ccadb.my.salesforce-sites.com/mozilla/PublicAllIntermediateCertsWithPEMCSV
mv latest-certs/certificates-new.tgz latest-certs/certificates-old.tgz
pan-chainguard/bin/sprocket.py --verbose --ccadb latest-certs/AllCertificateRecordsReport.csv --fingerprints latest-certs/root-fingerprints.csv --policy latest-certs/policy.json
pan-chainguard/bin/chain.py --verbose -c latest-certs/AllCertificateRecordsReport.csv -r latest-certs/root-fingerprints.csv -i latest-certs/intermediate-fingerprints.csv --tree latest-certs/certificate-tree.json
pan-chainguard/chainring.py --tree latest-certs/certificate-tree.json --format html > latest-certs/certificate-tree.html
pan-chainguard/chainring.py --tree latest-certs/certificate-tree.json --format json > latest-certs/certificate-tree.json
pan-chainguard/link.py --verbose -f latest-certs/root-fingerprints.csv -f latest-certs/intermediate-fingerprints.csv -m latest-certs/MozillaIntermediateCerts.csv -m latest-certs/PublicAllIntermediateCertsWithPEMReport.csv --certs-old latest-certs/certificates-old.tgz --certs-new latest-certs/certificates-new.tgz
rm latest-certs/certificates-old.tgz
- name: commit files
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -A latest-certs/*
git rm -r pan-chainguard
git diff-index --quiet HEAD || (git commit -a -m "updated files" --allow-empty)
- name: push changes
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## PAN Chainguard Content Repo

This repo is meant to daily fetch the latest certificates from CCADB and cache them to optimize [pan-chainguard](https://github.com/PaloAltoNetworks/pan-chainguard) users fetching.


To be continued....





Binary file added latest-certs/.DS_Store
Binary file not shown.
10,297 changes: 10,297 additions & 0 deletions latest-certs/AllCertificateRecordsReport.csv

Large diffs are not rendered by default.

52,388 changes: 52,388 additions & 0 deletions latest-certs/MozillaIntermediateCerts.csv

Large diffs are not rendered by default.

69,253 changes: 69,253 additions & 0 deletions latest-certs/PublicAllIntermediateCertsWithPEMReport.csv

Large diffs are not rendered by default.

4,527 changes: 4,527 additions & 0 deletions latest-certs/certificate-tree.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions latest-certs/certificate-tree.json

Large diffs are not rendered by default.

2,155 changes: 2,155 additions & 0 deletions latest-certs/certificate-tree.txt

Large diffs are not rendered by default.

Binary file added latest-certs/certificates-new.tgz
Binary file not shown.
Binary file added latest-certs/certificates-old.tgz
Binary file not shown.
1,857 changes: 1,857 additions & 0 deletions latest-certs/intermediate-fingerprints.csv

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions latest-certs/policy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sources": ["mozilla", "google", "apple", "microsoft"],
"operation": "union",
"trust_bits": []
}
299 changes: 299 additions & 0 deletions latest-certs/root-fingerprints.csv

Large diffs are not rendered by default.

0 comments on commit eeea10a

Please sign in to comment.