Comments (3)
yeeeees!
bask in the glory of automated team sync issues: 2i2c-org/team-compass#52
from ghapi.
@choldgraf do you think there is a bug in your script? In this line
It has:
api = GhApi(token=github_token())
shouldn't it be
api = GhApi(token=token)
😄 It would be wonderful if this fixes the issue. LMK
from ghapi.
The code of github_token
() is this
def github_token():
"Get GitHub token from `GITHUB_TOKEN` env var if available, or from `github` context"
return os.getenv('GITHUB_TOKEN', context_github.get('token', None))
This means you are trying to getting the GITHUB_TOKEN
[1] from the actions runner (due to the bug above), which you don't want - basically you want to grab YOUR token you put in ACCESS_TOKEN
not the one from the Actions Runner, The one in the Actions Runner has locked down permissions and won't be able to do what you want. This will definitely solve your problem.
[1] I don't think you are getting any token b/c in create_team_sync.yaml
you are not defining GITHUB_TOKEN
its just that you have a bug that is trying to grab the wrong environment variable.
from ghapi.
Related Issues (20)
- Set outputs is currently using syntax which is due to be deprecated
- feature: get dependabot alerts for enterprise/org
- Self documenting api object does not work as described in docs HOT 1
- Is this project still maintained? HOT 4
- v1.0.4 HOT 4
- Pagination Broke. ghapi 1.0.3 HOT 1
- Document leaky exceptions
- website documentation wrong for secret_scanning & dependabot
- Provide static API documentation HOT 1
- Missing orgs.list_saml_sso_authorizations and other enterprise endpoints HOT 1
- SyntaxWarning: invalid escape sequence HOT 2
- Add ability to read token reported by `gh auth token` HOT 1
- Pagination does not work for api.search.code HOT 2
- Remove `pip` from dependencies HOT 2
- feature request: app authentication support
- How can I get the HTTP response status code after calling the APIs?
- Please add missing tags to the git repository for 1.x releases HOT 2
- Support for rulesets?
- mypy linting support
- How does this library generates the client with OpenAPI?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ghapi.