2023-10-28

Can I make the configuration for the analysis in php? on codeQL

I have this error, I read that it can be configured to scan php code, but it fails. What am I doing wrong?

Languages from configuration: php Error: Did not recognize the following languages: php

name: "CodeQL"

on: push: branches: [ "main" ] pull_request: # The branches below must be a subset of the branches above branches: [ "main" ] schedule: - cron: '21 0 * * 4'

jobs: analyze: name: Analyze

runs-on: $
timeout-minutes: $
permissions:
  actions: read
  contents: read
  security-events: write

strategy:
  fail-fast: false
  matrix:
    language: [ 'javascript-typescript' ]

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
  uses: github/codeql-action/init@v2
  with:
    languages: php
 

actions#jobsjob_idstepsrun

below for guidance.

- name: Perform CodeQL Analysis
  uses: github/codeql-action/analyze@v2
  with:
    category: "/language:$"


No comments:

Post a Comment