Giter VIP home page Giter VIP logo

Comments (5)

glenn-jocher avatar glenn-jocher commented on July 22, 2024

Hi @inisis,

Thank you for reaching out and for your interest in the auto-formatting bot! It looks like the issue you're encountering is related to the permissions and configurations of the GitHub Actions workflow.

To help you resolve this, please ensure the following:

  1. Permissions: Verify that the GitHub Actions workflow has the necessary permissions to run on pull requests from contributors other than the repository owner. You can do this by checking the repository settings under Settings > Actions > General and ensuring that workflows are allowed to run for pull requests from forks.

  2. Workflow Configuration: Ensure that the workflow file (.github/workflows/your-workflow-file.yml) is correctly configured to trigger on pull requests. Here’s an example configuration snippet:

    name: Auto-formatting Bot
    
    on:
      pull_request:
        branches:
          - main
    
    jobs:
      format:
        runs-on: ubuntu-latest
    
        steps:
          - name: Checkout code
            uses: actions/checkout@v2
    
          - name: Run formatter
            run: |
              # Your formatting commands here
  3. Token Permissions: Make sure that the GitHub token used in the workflow has the necessary permissions. By default, the GITHUB_TOKEN has read and write permissions on the repository. If you are using a custom token, ensure it has the correct scopes.

If the issue persists, please provide a minimum reproducible example of your workflow configuration and any relevant logs. This will help us better understand the problem and provide a more accurate solution. You can find more details on creating a minimum reproducible example here.

Feel free to update us with any additional information or questions you might have. We're here to help! 😊

from ultralytics.

inisis avatar inisis commented on July 22, 2024

@glenn-jocher I still can not get it to work, can you help me fix it. https://github.com/inisis/OnnxSlim/actions/runs/9591137863/job/26447570285

from ultralytics.

glenn-jocher avatar glenn-jocher commented on July 22, 2024

Hi @inisis,

Thank you for providing the link to the workflow run. To help you effectively, could you please ensure the following:

  1. Minimum Reproducible Example: If you haven't already, please provide a minimum reproducible example of your workflow configuration. This will help us understand the issue better. You can find guidance on creating one here.

  2. Package Versions: Ensure that you are using the most recent versions of torch and ultralytics. If not, please upgrade your packages and try running the workflow again.

Here's a quick checklist to verify your workflow configuration:

  • Permissions: Confirm that the workflow has the necessary permissions to run on pull requests from contributors.
  • Workflow Triggers: Ensure the workflow is set to trigger on pull requests:
    on:
      pull_request:
        branches:
          - main
  • Token Permissions: Verify that the GITHUB_TOKEN or any custom token used has the appropriate scopes.

If the issue persists, please share the relevant parts of your workflow configuration and any error messages you are encountering. This will help us diagnose the problem more accurately.

Looking forward to your response! 😊

from ultralytics.

inisis avatar inisis commented on July 22, 2024

Thank you, by setting settings/actions -> Workflow permissions this issue got solved

from ultralytics.

glenn-jocher avatar glenn-jocher commented on July 22, 2024

Hi @inisis,

Great to hear that adjusting the workflow permissions resolved the issue! πŸŽ‰

If you encounter any further questions or need additional assistance, feel free to reach out. We're here to help!

from ultralytics.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.