Title: Add explicit permissions to GitHub Actions workflow by Copilot · Pull Request #10 · github/github-elements · GitHub
Open Graph Title: Add explicit permissions to GitHub Actions workflow by Copilot · Pull Request #10 · github/github-elements
X Title: Add explicit permissions to GitHub Actions workflow by Copilot · Pull Request #10 · github/github-elements
Description: GitHub is changing the default Actions workflow permissions to read-only on December 9. This workflow commits and pushes generated documentation but lacks explicit permission declarations.
Changes
Added permissions: contents: write at workflow level in .github/workflows/node.js.yml
The workflow requires write access to commit generated README.md, bower.json, and package.json files:
on:
schedule:
- cron: "0 8 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
This is the minimal permission required for the workflow's git commit/push operations.
Original prompt
This section details on the original issue you should resolve
Open Graph Description: GitHub is changing the default Actions workflow permissions to read-only on December 9. This workflow commits and pushes generated documentation but lacks explicit permission declarations. Changes ...
X Description: GitHub is changing the default Actions workflow permissions to read-only on December 9. This workflow commits and pushes generated documentation but lacks explicit permission declarations. Changes ...
Opengraph URL: https://github.com/github/github-elements/pull/10
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:aea303df-53e4-928d-11e4-0a3034f73ce6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D698:3E74E8:1C4A6F7:27DB473:6A61D776 |
| html-safe-nonce | 49dd272187904abfa434096cfa2d380f669cab0de38232bd9c7d811b376c9f91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjk4OjNFNzRFODoxQzRBNkY3OjI3REI0NzM6NkE2MUQ3NzYiLCJ2aXNpdG9yX2lkIjoiOTEwMjA1ODc4MDM5ODU3MzQzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 011adfccdae41b5834d97cf9dcc33d63653bee14d42089495d31c0eb98196b5a |
| hovercard-subject-tag | pull_request:3082708992 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/github/github-elements/pull/10/files |
| twitter:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/in/1143301?s=400&v=4 |
| og:image:alt | GitHub is changing the default Actions workflow permissions to read-only on December 9. This workflow commits and pushes generated documentation but lacks explicit permission declarations. Changes ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b2de8c74e5e61e893155ba46ee41bc66170c1644cb795adefa8386d490f7781c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/github/github-elements git https://github.com/github/github-elements.git |
| octolytics-dimension-user_id | 9919 |
| octolytics-dimension-user_login | github |
| octolytics-dimension-repository_id | 138764380 |
| octolytics-dimension-repository_nwo | github/github-elements |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 138764380 |
| octolytics-dimension-repository_network_root_nwo | github/github-elements |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d1866027ded575df8a15c731dd8b9986c9483ceb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width