solunatus 0.4.0

High-precision astronomical calculation library and CLI for sun/moon positions, rise/set times, and lunar phases
Documentation
name: "CodeQL Security Scanning"

on:
  push:
    branches: [ "main" ]
  pull_request:
    branches: [ "main" ]
  schedule:
    # Run at 3:00 AM UTC every Monday (weekly scan)
    - cron: '0 3 * * 1'

permissions:
  contents: read

jobs:
  analyze:
    name: Analyze Rust Code
    runs-on: ubuntu-latest
    timeout-minutes: 360
    permissions:
      # Required for all workflows
      security-events: write
      # Required to fetch internal or private CodeQL packs
      packages: read
      # Only required for workflows in private repositories
      actions: read
      contents: read

    strategy:
      fail-fast: false
      matrix:
        language: [ 'rust' ]

    steps:
    - name: Checkout repository
      uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd

    - name: Initialize CodeQL
      uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225
      with:
        languages: ${{ matrix.language }}
        # CodeQL supports 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby', 'swift', and 'rust'
        # Use 'config-file' to specify a custom queries configuration
        # queries: security-extended,security-and-quality

    # Rust CodeQL now supports build-less scanning (as of Oct 2025)
    # No need to build the project - CodeQL will analyze without compilation

    - name: Perform CodeQL Analysis
      uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225
      with:
        category: "/language:${{matrix.language}}"