-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable security on organization (python) fails #107
Comments
Going to do some digging into this today 👍 |
I can't seem to replicate this 😢 I just ran something like this: name: Workflow
on:
workflow_dispatch:
env:
ENABLE_ON: "codescanning,secretscanning,pushprotection,dependabot,dependabotupdates,actions"
DEBUG: "ghas:*"
CREATE_ISSUE: "true"
GHES: "false"
GITHUB_ORG: ${{ secrets.MY_ORG }}
GITHUB_API_TOKEN: ${{ secrets.MY_TOKEN }}
jobs:
enable-security-python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
repository: NickLiffen/ghas-enablement
- name: Get dependencies and configure
run: |
yarn
git config --global user.name "ghas-enablement"
git config --global user.email "[email protected]"
- name: Enable security on organization (python)
run: |
npm run getRepos
npm run start
env:
LANGUAGE_TO_CHECK: "python"
TEMP_DIR: ${{ github.workspace }} Could you create two secrets, one with the org name and one with the PAT and try giving this a go 🤔 With the scopes documented in the |
One of our repositories is experiencing the same error, while the majority of them are functioning properly. 2023-08-14T22:05:40.298Z ghas:inform Found default branch SHA on the following repository: xxx-edge-api. The default branch is: db2edea247a517bfd1192c98b3533f8a9a1f5f26 2023-08-14T22:05:44.781Z ghas:inform 2023-08-14T22:05:45.788Z ghas:inform
node:internal/process/promises:288 Error: Command failed: git commit -m "Commit CodeQL File"
code: 1, Node.js v18.17.0 |
Summary
Running the GitHub Action step for Python fails after running it the first time. It ran once and then rerunning it causes it to fail. I plan to put this into a cronjob but manual invocation does not work.
Code
Error
The text was updated successfully, but these errors were encountered: