auth-check

command
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2023 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Example


name: Pull Request Authentication Check

on:
  pull_request:
  workflow_dispatch:

jobs:
  check-pr-user:
    runs-on: ${{ matrix.os }}

    strategy:
      matrix:
        os: [ubuntu-latest]

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

      - id: approve_colab_user
        name: Check PR user 
        uses: docker://jackstock8904/auth-check:latest
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

      - name: Output
        run: echo ${{ steps.approve_colab_user.outputs.approve_colab_user }}

      - name: Comment on PR if true
        uses: actions/github-script@v6
        if: steps.approve_colab_user.outputs.approve_colab_user == 'true'
        with:
          github-token: "${{ secrets.GITHUB_TOKEN }}"
          script: |
            github.rest.issues.createComment({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              body: 'This is a known Colaborator. Please Review this Pull Request.'
            });
      
      - name: Comment on PR if false
        uses: actions/github-script@v6
        if: steps.approve_colab_user.outputs.approve_colab_user == 'false'
        with:
          github-token: "${{ secrets.GITHUB_TOKEN }}"
          script: |
            github.rest.issues.createComment({
              issue_number: context.issue.number,
              owner: context.repo.owner,
              repo: context.repo.repo,
              body: 'This isn't a known Colaborator. This Pull Request will now be closed.'
            });

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL