GitHub - zkoppert/advanced-security-enforcer: A GitHub action for organizations that enables advanced security code scanning on all new repos (original) (raw)

CodeQL Docker Image CI .github/workflows/linter.yml

What this repository does

This code is for an active GitHub Action written in Python to check (on a schedule) for new repositories created on the previous day and open pull requests in the new repositories to enable GitHub advanced security code scanning.

Support

If you need support using this project or have questions about it, please open up an issue in this repository. Requests made directly to GitHub staff or support team will be redirected here to open an issue. GitHub SLA's and support/services contracts do not apply to this repository.

Example workflow

name: Enforce advanced security scanning

on: workflow_dispatch: schedule: - cron: '00 5 * * *'

jobs: build: name: Enforce advanced security scanning runs-on: ubuntu-latest

steps:
- name: Checkout code
  uses: actions/checkout@v4

- name: Run enforcer tool
  uses: zkoppert/advanced-security-enforcer@v2
  env:
    GH_ACTOR: ${{ secrets.GH_ACTOR }}
    GH_TOKEN: ${{ secrets.GH_TOKEN }}
    ORGANIZATION: ${{ secrets.ORGANIZATION }}
    PR_BODY: your text goes here
    HOURS_DELAY: 24

How it does this

Contributions

We would ❤️ contributions to improve this action. Please see CONTRIBUTING.md for how to get involved.

Debugging in GitHub Actions

Instructions to run locally

Docker debug instructions

License

MIT