Skip to content

Commit

Permalink
Merge pull request #2 from ab180/add-administration-write
Browse files Browse the repository at this point in the history
add administration permission
  • Loading branch information
dongho-jung authored Oct 19, 2022
2 parents 16d0849 + 955e7b8 commit 299e56f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ inputs:
- `contents-rw` : git commit and permission, it contains contents-ro also
- `actions-rw` : github actions(workflow) read and execute permission
- `checks-rw` : github checks read and write permission
- `administration-ro` : github administration read only permission
default: "contents-ro"
checkout:
description: |
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48192,6 +48192,7 @@ const prepareInput = () => {
: undefined,
actions: hasPermission("actions-rw") ? "write" : undefined,
checks: hasPermission("checks-rw") ? "write" : undefined,
administration: hasPermission("administration-ro") ? "read" : undefined,
};
return {
appId,
Expand Down
2 changes: 2 additions & 0 deletions src/github_app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ type Permission = {
contents: "read" | "write" | undefined;
actions: "write" | undefined;
checks: "write" | undefined;
administration: "read" | undefined;
};
type Input = {
appId: string;
Expand Down Expand Up @@ -49,6 +50,7 @@ export const prepareInput = (): Input => {
: undefined,
actions: hasPermission("actions-rw") ? "write" : undefined,
checks: hasPermission("checks-rw") ? "write" : undefined,
administration: hasPermission("administration-ro") ? "read" : undefined,
};

return {
Expand Down

0 comments on commit 299e56f

Please sign in to comment.