Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/sonic_image_links_create_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ name: Run the shell script to generate sonic image links in sonic_image_links.js
on:
schedule:
- cron: '* * * * *'

permissions:
actions: read|write
Comment on lines +10 to +11
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.


jobs:
build:
Expand Down