Skip to content

ScoopInstaller/scoopinstaller.github.io-indexer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScoopSearch Indexer

Indexer workflow Coverage

This repository contains the Indexer used to build and maintain the Scoop applications index used by https://scoopinstaller.github.io/

Indexing

The indexer runs every 2 hours and search for buckets across the whole GitHub site + some additional inclusions/exclusions.

Configuration to build and debug the Indexer

  • Install .NET 8.0 SDK
  • Create an Azure Search service
    • Retrieve the name (in Properties) and use it for ServiceUrl
    • Retrieve the primary admin key (in Keys) and use it for AdminApiKey
  • Create a GitHub access token without any scope and use it for Token
  • Create a file src/ScoopSearch.Indexer.Console/appsettings.Production.json with the following content
{
    "AzureSearch": {
        "ServiceUrl": "https://[SERVICENAME].search.windows.net",
        "AdminApiKey": "[ADMINAPIKEY]",
        "IndexName": "[INDEXNAME]"
    },

    "GitHub": {
        "Token": "[GITHUBTOKEN]"
    }
}
  • Alternatively, you can declare environment variables
AzureSearch__ServiceUrl = "https://[SERVICENAME].search.windows.net"
AzureSearch__AdminApiKey = "[ADMINAPIKEY]"
AzureSearch__IndexName: "[INDEXNAME]"
GitHub__Token = "[GITHUBTOKEN]"

About

Indexer to maintain Scoop applications index

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages