Skip to content

DeprecationWarning: Argument login_or_token is deprecated, please use auth=github.Auth.Token(...) instead` #144

@csidirop

Description

@csidirop

describe your issue

I found a deprecation warning in the logs /home/runner/work/_actions/commit-check/commit-check-action/v1/main.py:127: DeprecationWarning: Argument login_or_token is deprecated, please use auth=github.Auth.Token(...) instead

As you can see on my config later I'm trying the experimental pr commenting feature (same repo branch to main). It still works as expected but that may change in the future.

commit-check version

v1 ??

.commit-check.yml

name: Commit Check
on:
  pull_request:
    types: [opened, synchronize, reopened]

jobs:
  check:
    runs-on: ubuntu-latest
    permissions: # use permissions because use of pr-comments
        contents: read
        issues: write
        pull-requests: write
    steps:
      - uses: actions/checkout@v4
        with:
          ref: ${{ github.event.pull_request.head.sha }}
          fetch-depth: 0 # required for merge-base check
      - uses: commit-check/commit-check-action@v1 # see https://github.com/marketplace/actions/commit-check-action
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          author-name: true
          author-email: true
          branch: false
          commit-signoff: false
          imperative: false
          job-summary: true
          message: false
          merge-base: false
          pr-comments: ${{ github.event_name == 'pull_request' }}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions