Skip to content
New issue

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

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

Already on GitHub? # to your account

Workflow error getting maintainer team members #15

Open
seokho-son opened this issue Nov 24, 2023 · 0 comments
Open

Workflow error getting maintainer team members #15

seokho-son opened this issue Nov 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@seokho-son
Copy link
Member

https://github.com/m-cmp/mc-infra-manager/actions/runs/6979260502/job/18992198065

Run TEAM_NAME="mc-infra-manager-maintainer"
  TEAM_NAME="mc-infra-manager-maintainer"
  echo "GITHUB_ACTOR: ${GITHUB_ACTOR} / TEAM_NAME: ${TEAM_NAME}"
  
  TEAM_MEMBERS=$(curl -L \
                  -H "Accept: application/vnd.github+json" \
                  -H "Authorization: ***" \
                  -H "X-GitHub-Api-Version: [2](https://github.com/m-cmp/mc-infra-manager/actions/runs/6979260502/job/18992198065#step:3:2)022-11-28" \
                  https://api.github.com/orgs/m-cmp/teams/${TEAM_NAME}/members | jq -r '.[] | .login' | tr '\n' ',')
  echo "TEAM_MEMBERS=$TEAM_MEMBERS" >> $GITHUB_ENV
  echo "TEAM_MEMBERS: ${TEAM_MEMBERS}"
  shell: /usr/bin/bash -e {0}
  env:
    REPO_NAME: mc-infra-manager
GITHUB_ACTOR: seokho-son / TEAM_NAME: mc-infra-manager-maintainer
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   116  100   116    0     0    [4](https://github.com/m-cmp/mc-infra-manager/actions/runs/6979260502/job/18992198065#step:3:4)9[7](https://github.com/m-cmp/mc-infra-manager/actions/runs/6979260502/job/18992198065#step:3:7)      0 --:--:-- --:--:-- --:--:--   4[9](https://github.com/m-cmp/mc-infra-manager/actions/runs/6979260502/job/18992198065#step:3:9)7
jq: error (at <stdin>:4): Cannot index string with string "login"
TEAM_MEMBERS:

PAT의 권한 이슈로 보임.

@seokho-son seokho-son added the bug Something isn't working label Nov 24, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant