Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sonic_image_links_create_workflow.yml #885

Closed
wants to merge 1 commit into from

Conversation

kannankvs
Copy link
Collaborator

Updated workflow file sonic_image_links_create_workflow.yml for permission as suggested.

Comment on lines +10 to +11
permissions:
actions: read|write
Copy link
Contributor

@xumia xumia Oct 20, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The permissions should be aligned with on and jobs, see https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#permissions
Need to change:

  permissions:
    actions: read|write

TO: (remove two space characters in front of each line)

permissions:
  contents: read|write

(The permission is to write the repo contents, not manage actions itself)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the permissions are granted to GITHUB_TOKEN, I guess we need to use the token in the script to commit the change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can test in your repo to use the GITHUB_TOKEN.

@kannankvs
Copy link
Collaborator Author

We shall explore this solution later. For now, this PR is not required. Hence closing it.

@kannankvs kannankvs closed this Oct 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants