Commit graph

11 commits

Author SHA1 Message Date
Josh Soref
2fa723c947 infra/workflow: Reduce workflow permissions
By explicitly listing the permissions required in general, repositories
without restrictive permissions will only allocate the specified
permissions which is much safer than the default, fairly wide,
permissions grant.

Most workflows don't appear to need any permissions beyond
`contents: read` which is required for checkout (when a repository is
private). By specifying this permission, it tells GitHub not to include
any of its additional default permissions (when a repository is
configured permissively).

The .github/workflows/memcheck_*.sh scripts called by build_ubuntu.yml
require write permissions in order to post their output to a pull
request (as a comment).

In locked down GitHub repositories, unless a workflow/job asks for
write permissions, it will not have them and such API calls will result
in:

{
  "message": "Resource not accessible by integration",
  "documentation_url": "https://docs.github.com/rest/issues/comments#create-an-issue-comment",
  "status": "403"
}

By specifically requesting the permissions, the workflow will continue
to work as expected.
2024-09-30 12:46:24 +09:00
Josh Soref
e3c66db301 common: fix 178+ spelling errors 2024-09-30 12:41:38 +09:00
Hermet Park
b322860745 infra/workflow: includes the gl engine build test. 2024-06-27 14:42:27 +09:00
Rafał Mikrut
71f596b173 Better regression testing 2024-04-06 12:08:22 +09:00
Hermet Park
7272e8efd4 infra: fix git-action ios break 2023-12-26 18:34:22 +09:00
Jinny You
b581cbb123 infra: fix macos build crash 2023-12-26 18:31:11 +09:00
Hermet Park
e31902d5b1 infra/gitaction: fix a broken macos/ios CI build. 2023-12-26 17:48:07 +09:00
Hermet Park
926f3f37db infra/gitaction: corrected meson build commands
meson "setup" is a mandatory command. skipping has been deprecated.
2023-12-26 17:44:49 +09:00
Hermet Park
dc67c405f8
infra/gitaction: hotfix system buid fail. 2023-09-22 16:25:26 +09:00
Hermet Park
20d2760bf4
infra/gitaction: trouble shooting macos build failure 2023-09-22 10:47:01 +09:00
Hermet Park
5b8999e417 infra: updated gitaction CI build test with MacOS
@Issue: https://github.com/thorvg/thorvg/issues/1433
2023-09-13 12:33:16 +09:00