Git Product home page Git Product logo

Comments (6)

dimitriosxmi avatar dimitriosxmi commented on June 11, 2024 2

Edit:

Solution

So I did just look around the settings within the actions settings and found the setting that did the trick for me

Screenshot 2023-04-23 at 12 38 17

  1. Go to your repository's Settings tab.
  2. Now on the left side nav bar under the category Code and automation click on the Actions dropdown button and select the option General
  3. Now scroll down in your page to the Workflow permissions here you should find 2 radio buttons, and a checkbox in the bottom, if you haven't made any changes here before your default radio button setting should be the second, namely Read repository contents and packages permissions, this setting prevents your action workflows from applying any changes to your repository's files. To change that simply select the radio button option above, namely Read and write permissions. Don't forget to click the Save button in the end, which can be found in the bottom of the Workflow permissions section.
    I hope this helps you gents @ZhangYHe @xzan8189 😄

same, anyone got a solution for this ?
Googling the issue suggests changing the - uses: actions/checkout@v2 to v3 - uses: actions/checkout@v3I tried it but it didn't change the problem.
@jamesgeorge007 seems to also be getting the warning in the action builds but his actions still build successfully.
So the question arises is there some way to ignore warnings?

After some research I didn't find much more than a flag for something similar but instead for errors not for warnings
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error
but James doesn't seem to be using any flags, so I thought there might be some form of setting that can be changed.

from github-activity-readme.

DorielRivalet avatar DorielRivalet commented on June 11, 2024 2

A more granular approach is adding contents: write, like this:

jobs:
  build:
    runs-on: ubuntu-latest
    name: Update this repo's README with recent activity
    permissions:
      contents: write
    steps:
      - uses: actions/checkout@v2
      - uses: jamesgeorge007/github-activity-readme@master

That way, the default permissions don't need to be changed.

from github-activity-readme.

tuunit avatar tuunit commented on June 11, 2024 1

Please follow the advice given by @DorielRivalet. We just recently updated the official README to make users aware of the permissions feature.

from github-activity-readme.

xzan8189 avatar xzan8189 commented on June 11, 2024

It gives me the same error

from github-activity-readme.

ZhangYHe avatar ZhangYHe commented on June 11, 2024

Thank you!

Edit:

Solution

So I did just look around the settings within the actions settings and found the setting that did the trick for me

Screenshot 2023-04-23 at 12 38 17
  1. Go to your repository's Settings tab.
  2. Now on the left side nav bar under the category Code and automation click on the Actions dropdown button and select the option General
  3. Now scroll down in your page to the Workflow permissions here you should find 2 radio buttons, and a checkbox in the bottom, if you haven't made any changes here before your default radio button setting should be the second, namely Read repository contents and packages permissions, this setting prevents your action workflows from applying any changes to your repository's files. To change that simply select the radio button option above, namely Read and write permissions. Don't forget to click the Save button in the end, which can be found in the bottom of the Workflow permissions section.
    I hope this helps you gents @ZhangYHe @xzan8189 😄

same, anyone got a solution for this ? Googling the issue suggests changing the - uses: actions/checkout@v2 to v3 - uses: actions/checkout@v3I tried it but it didn't change the problem. @jamesgeorge007 seems to also be getting the warning in the action builds but his actions still build successfully. So the question arises is there some way to ignore warnings?

After some research I didn't find much more than a flag for something similar but instead for errors not for warnings https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error but James doesn't seem to be using any flags, so I thought there might be some form of setting that can be changed.

from github-activity-readme.

xzan8189 avatar xzan8189 commented on June 11, 2024

Thank you!

Edit:

Solution

So I did just look around the settings within the actions settings and found the setting that did the trick for me
Screenshot 2023-04-23 at 12 38 17

  1. Go to your repository's Settings tab.
  2. Now on the left side nav bar under the category Code and automation click on the Actions dropdown button and select the option General
  3. Now scroll down in your page to the Workflow permissions here you should find 2 radio buttons, and a checkbox in the bottom, if you haven't made any changes here before your default radio button setting should be the second, namely Read repository contents and packages permissions, this setting prevents your action workflows from applying any changes to your repository's files. To change that simply select the radio button option above, namely Read and write permissions. Don't forget to click the Save button in the end, which can be found in the bottom of the Workflow permissions section.
    I hope this helps you gents @ZhangYHe @xzan8189 😄

same, anyone got a solution for this ? Googling the issue suggests changing the - uses: actions/checkout@v2 to v3 - uses: actions/checkout@v3I tried it but it didn't change the problem. @jamesgeorge007 seems to also be getting the warning in the action builds but his actions still build successfully. So the question arises is there some way to ignore warnings?
After some research I didn't find much more than a flag for something similar but instead for errors not for warnings https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error but James doesn't seem to be using any flags, so I thought there might be some form of setting that can be changed.

Hi @dimitriosxmi, thank you for your help!

from github-activity-readme.

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.