-
Notifications
You must be signed in to change notification settings - Fork 0
adding workflow for generating SRS files #2
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
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
cb7c34d
feat: adding workflow for generating SRS files
WendelHime 19fdda0
fix: adding missing steps for checkout and adding permission to binar…
WendelHime 6831bf0
feat: adding .gitignore for not adding the binary file
WendelHime ca43666
feat: adding example
WendelHime 5c456b6
feat: adding AI rule-set CSV
WendelHime 2d100e9
fix: removing route to column
WendelHime eda6fe6
fix: replacing - by _
WendelHime 53fd407
Merge branch 'main' of github-lantern:getlantern/rulesets into feat/a…
WendelHime bef73be
fix: running workflow on pull request
WendelHime 84718fb
fix: removing workflow condition for running on all pull requests
WendelHime b42b5e4
fix: removing condition for running generate job
WendelHime 65484a8
fix: using another gh action for commit and push
WendelHime 2c8e578
fix: adding HEAD: to push
WendelHime 6855f04
fix: typo
WendelHime 5508909
fix: using another gh action for adding commit and set checkout ref
WendelHime 4bf2d4c
Apply automatic changes
WendelHime File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| name: Generate SRS Files | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: ["csv/**"] | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Set up Go | ||
| uses: actions/setup-go@v4 | ||
| with: | ||
| go-version: '1.25' | ||
| - name: Build | ||
| run: go build -v ./cmd/csv_to_srs | ||
| - name: Upload artifact | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: csv_to_srs | ||
| path: ./csv_to_srs | ||
| retention-days: 1 | ||
|
|
||
|
|
||
| generate_srs: | ||
| runs-on: ubuntu-latest | ||
| needs: build | ||
| permissions: | ||
| contents: write | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| with: | ||
| ref: ${{ github.head_ref }} | ||
| - name: Download artifact | ||
| uses: actions/download-artifact@v5 | ||
| with: | ||
| name: csv_to_srs | ||
WendelHime marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| - name: Set execute permission on csv_to_srs | ||
| run: chmod +x ./csv_to_srs | ||
| - name: Generating SRS files | ||
| run: ./csv_to_srs -input_dir ./csv -output_dir ./srs | ||
| - uses: stefanzweifel/git-auto-commit-action@v7 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| csv_to_srs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| rule_type,value | ||
| domain,lantern.io |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,102 @@ | ||
| rule type,value | ||
| domain,browser-intake-datadoghq.com | ||
| domain,chat.openai.com.cdn.cloudflare.net | ||
| domain,gemini.google.com | ||
| domain,openai-api.arkoselabs.com | ||
| domain,openaicom-api-bdcpf8c6d2e9atf6.z01.azurefd.net | ||
| domain,openaicomproductionae4b.blob.core.windows.net | ||
| domain,production-openaicom-storage.azureedge.net | ||
| domain,static.cloudflareinsights.com | ||
| domain_suffix,ai.com | ||
| domain_suffix,algolia.net | ||
| domain_suffix,api.statsig.com | ||
| domain_suffix,auth0.com | ||
| domain_suffix,chatgpt.com | ||
| domain_suffix,chatgpt.livekit.cloud | ||
| domain_suffix,client-api.arkoselabs.com | ||
| domain_suffix,events.statsigapi.net | ||
| domain_suffix,featuregates.org | ||
| domain_suffix,host.livekit.cloud | ||
| domain_suffix,identrust.com | ||
| domain_suffix,intercom.io | ||
| domain_suffix,intercomcdn.com | ||
| domain_suffix,launchdarkly.com | ||
| domain_suffix,oaistatic.com | ||
| domain_suffix,oaiusercontent.com | ||
| domain_suffix,observeit.net | ||
| domain_suffix,openai.com | ||
| domain_suffix,openaiapi-site.azureedge.net | ||
| domain_suffix,openaicom.imgix.net | ||
| domain_suffix,segment.io | ||
| domain_suffix,sentry.io | ||
| domain_suffix,stripe.com | ||
| domain_suffix,turn.livekit.cloud | ||
| domain_suffix,sora.com | ||
| domain_keyword,openai | ||
| domain,api.msn.com | ||
| domain,api.statsig.com | ||
| domain,assets.msn.com | ||
| domain,browser-intake-datadoghq.com | ||
| domain,chat.openai.com.cdn.cloudflare.net | ||
| domain,copilot.microsoft.com | ||
| domain,gateway.bingviz.microsoft.net | ||
| domain,gateway.bingviz.microsoftapp.net | ||
| domain,in.appcenter.ms | ||
| domain,location.microsoft.com | ||
| domain,odc.officeapps.live.com | ||
| domain,openai-api.arkoselabs.com | ||
| domain,openaicomproductionae4b.blob.core.windows.net | ||
| domain,production-openaicom-storage.azureedge.net | ||
| domain,r.bing.com | ||
| domain,self.events.data.microsoft.com | ||
| domain,services.bingapis.com | ||
| domain,static.cloudflareinsights.com | ||
| domain,sydney.bing.com | ||
| domain,www.bing.com | ||
| domain_suffix,algolia.net | ||
| domain_suffix,api.microsoftapp.net | ||
| domain_suffix,auth0.com | ||
| domain_suffix,bing-shopping.microsoft-falcon.io | ||
| domain_suffix,challenges.cloudflare.com | ||
| domain_suffix,chatgpt.com | ||
| domain_suffix,chatgpt.livekit.cloud | ||
| domain_suffix,client-api.arkoselabs.com | ||
| domain_suffix,edgeservices.bing.com | ||
| domain_suffix,events.statsigapi.net | ||
| domain_suffix,featuregates.org | ||
| domain_suffix,host.livekit.cloud | ||
| domain_suffix,identrust.com | ||
| domain_suffix,intercom.io | ||
| domain_suffix,intercomcdn.com | ||
| domain_suffix,launchdarkly.com | ||
| domain_suffix,oaistatic.com | ||
| domain_suffix,oaiusercontent.com | ||
| domain_suffix,observeit.net | ||
| domain_suffix,openai.com | ||
| domain_suffix,openaiapi-site.azureedge.net | ||
| domain_suffix,openaicom.imgix.net | ||
| domain_suffix,segment.io | ||
| domain_suffix,sentry.io | ||
| domain_suffix,stripe.com | ||
| domain_suffix,turn.livekit.cloud | ||
| domain_keyword,openaicom-api | ||
| domain,ai.google.dev | ||
| domain,alkalimakersuite-pa.clients6.google.com | ||
| domain,makersuite.google.com | ||
| domain_suffix,bard.google.com | ||
| domain_suffix,deepmind.com | ||
| domain_suffix,deepmind.google | ||
| domain_suffix,gemini.google.com | ||
| domain_suffix,generativeai.google | ||
| domain_suffix,proactivebackend-pa.googleapis.com | ||
| domain_suffix,apis.google.com | ||
| domain_keyword,colab | ||
| domain_keyword,developerprofiles | ||
| domain_keyword,generativelanguage | ||
| domain,cdn.usefathom.com | ||
| domain_suffix,anthropic.com | ||
| domain_suffix,claude.ai | ||
| domain_suffix,razie.ai | ||
| domain_suffix,razie.aws.intellij.net | ||
| domain_suffix,etbrains.ai | ||
| domain_suffix,meta.com |
Binary file not shown.
Binary file not shown.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.