hunk.code_window:   NodeMajorVersion = 'upn.ng_node_major_version',
     AngularCLIVersion = 'up.ng_cli_version',
     AngularCLIMajorVersion = 'upn.ng_cli_major_version',
     PackageManager = 'up.ng_package_manager',
     PackageManagerVersion = 'up.ng_package_manager_version',
     PackageManagerMajorVersion = 'upn.ng_package_manager_major_version',
   }
   /**
  
hunk.labels: keep keep keep keep replace replace keep keep keep
hunk.after_edit:   PackageManagerVersion = 'up.ng_pkg_manager_version',
     PackageManagerMajorVersion = 'upn.ng_pkg_manager_major_v',
  
hunk.file_path: packages/angular/cli/src/analytics/analytics-parameters.ts
hunk.type: replace
file: name: OpenSSF Scorecard
  on:
    branch_protection_rule:
    schedule:
      - cron: '0 2 * * 0'
    push:
      branches: [main]
    workflow_dispatch:
  
  # Declare default permissions as read only.
  permissions:
    contents: read
  
  jobs:
    analysis:
      name: Scorecards analysis
      runs-on: ubuntu-latest
      permissions:
        actions: read
        contents: read
        # Needed to upload the results to code-scanning dashboard.
        security-events: write
        # Needed to publish results
        id-token: write
  
      steps:
        - name: 'Checkout code'
          uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8 # tag=v3.1.0
          with:
            persist-credentials: false
  
        - name: 'Run analysis'
          uses: ossf/scorecard-action@e363bfca00e752f91de7b7d2a77340e2e523cb18 # tag=v2.0.4
          with:
            results_file: results.sarif
            results_format: sarif
            publish_results: true
  
        # Upload the results as artifacts.
        - name: 'Upload artifact'
          uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # tag=v3.1.0
          with:
            name: SARIF file
            path: results.sarif
            retention-days: 5
  
        # Upload the results to GitHub's code scanning dashboard.
        - name: 'Upload to code-scanning'
          uses: github/codeql-action/upload-sarif@807578363a7869ca324a79039e6db9c843e0e100 # tag=v2.1.27
          with:
            sarif_file: results.sarif
  