nomic-ai/gpt4all

2 workflows · maturity 0% · 0 patterns · GitHub ↗

Security 0/100

Practices

○ Matrix○ Permissions○ Security scan○ AI review○ Cache○ Concurrency○ Reusable workflows

Security dimensions

permissions
0
security scan
0
supply chain
0
secret handling
0
harden runner
0

Workflows (2)

close_issues .github/workflows/close_issues.yml
Triggers
workflow_dispatch
Runs on
ubuntu-latest
Jobs
close_issues
View raw YAML
# This workflow will close issues that do not have labels or additional comments.
# Trigger manually.

name: "Close Issues"
on:
  workflow_dispatch:

jobs:
  close_issues:
    runs-on: ubuntu-latest
    steps:
    - name: Close issues without label or comment
      uses: actions/github-script@v3
      with:
        github-token: ${{secrets.GITHUB_TOKEN}}
        script: |
          const repo = context.repo;
          let page = 1;
          let issues = [];
          while (true) {
            const result = await github.issues.listForRepo({...repo, per_page: 100, page: page});
            if (result.data.length === 0) break;
            issues = issues.concat(result.data);
            page += 1;
          }
          for (let { number } of issues) {
            const issueData = await github.issues.get({...repo, issue_number: number});
            const comments = await github.issues.listComments({...repo, issue_number: number});
            if (issueData.data.labels.length === 0 && comments.data.length < 1) {
              await github.issues.update({...repo, issue_number: number, state: 'closed'});
              await github.issues.createComment({...repo, issue_number: number, body: 'Issue closed as it does not have any labels or comments.'});
            }
          }
codespell .github/workflows/codespell.yml
Triggers
push, pull_request
Runs on
ubuntu-latest
Jobs
codespell
Actions
codespell-project/actions-codespell
View raw YAML
---
name: Codespell

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  codespell:
    name: Check for spelling errors
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Codespell
        uses: codespell-project/actions-codespell@v2