chore(ci): Add relyance scanner (#17777)

pull/17769/head^2
Paul Rogers 1 month ago committed by GitHub
parent a237444f0d
commit 2a5ae53e56
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 31
      .github/workflows/relyance.yml
  2. 68
      relyance.yaml

@ -0,0 +1,31 @@
name: Relyance Compliance Inspection
on:
schedule:
- cron: '0 0 * * *' # Run daily at 00:00 UTC
workflow_dispatch: # Allow for manual trigger
jobs:
relyance:
permissions:
contents: read
id-token: write
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout Code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
'persist-credentials': false
- name: retrieve secrets
id: get-secrets
uses: grafana/shared-workflows/actions/get-vault-secrets@7d18a46aafb8b875ed76a0bc98852d74b91e7f91 # v1.0.0
with:
repo_secrets: |
RELYANCE_API_KEY=relyance:API_KEY
- name: Run Relyance Compliance Inspector
run: |
docker pull gcr.io/relyance-ext/compliance_inspector:release && \
docker run --rm -v `pwd`:/repo --env "API_KEY=${{ env.RELYANCE_API_KEY }}" gcr.io/relyance-ext/compliance_inspector:release

@ -0,0 +1,68 @@
# Relyance Compliance Inspector Configuration
# TODO: Replace text in < > with actual information from your environment
# Product and Repository Metadata
# Purpose: Useful to slice/dice the Data Inventory and Data Map in Relyance
repository: grafana/loki
# Services and Code Relationship
# Purpose: Configuration used to visualize the code base and relationships between microservices and code.
# Note: Directory paths are relative to the repository's root directory.
# Note: Need a separate entry for each microservice. See example below.
services:
- service: compactor
source:
- pkg/compactor
- service: distributor
source:
- pkg/distributor
- service: indexgateway
source:
- pkg/indexgateway
- service: ingester
source:
- pkg/ingester
- service: querier
source:
- pkg/querier
- service: ruler
source:
- pkg/ruler
# Example: Services and Code Relationship
# Note: Do not use below. It is an example.
# Note: Directory paths are relative to the repository's root directory
#- service: paymentservice
# source:
# - src/payments
# - src/checkout_service
#- service: catalogservice
# source:
# - src/catalog
# Source Directories to Exclude
# Purpose: Configuration is used to exclude directories from analysis such as test directories etc.
# Note: Directory paths are relative to the repository's root directory
exclude:
- .cursor
- .devcontainer
- .github
- clients
- debug
- docs
- examples
- loki-build-image
- nix
- operator
- tools
# Excluding files and directories using patterns (enable lines as needed)
#exclude_patterns:
# - "**/*_mock.*" # example of excluding file with some pattern
# - "**/exclude_dir/**" # example of excluding a directory regardless where the directory is
# - src/excluded_file.go # example of excluding a specific file
Loading…
Cancel
Save