advanced-security/ghas-to-csv

code_scanning.write_repo_cs_list type error

sandeepeat2014 opened this issue · 7 comments

Getting following error:

Run advanced-security/ghas-to-csv@v3
/usr/bin/docker run --name a6c8ceb4a553734254b1ba81711b627d01061_71b2c3 --label 2a6c8c --workdir /github/workspace --rm -e "GITHUB_PAT" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIR...
Traceback (most recent call last):
Starting GitHub security report...
File "/app/main.py", line 129, in
code_scanning.write_repo_cs_list(cs_list)
File "/app/src/code_scanning.py", line 87, in write_repo_cs_list
if cs["state"] == "open":
~~^^^^^^^^^
TypeError: string indices must be integers, not 'str'

Facing the same issue. Could you please have a check.

widley commented

Same here!

Same here :(

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 1 week.

Is this issue still occurring for any commenters?

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 1 week.

This issue was closed because it has been stalled for 1 week with no activity.