Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Improve facebook token renewal #59

Open
MartinDelille opened this issue Jan 15, 2023 · 0 comments
Open

Improve facebook token renewal #59

MartinDelille opened this issue Jan 15, 2023 · 0 comments
Assignees

Comments

@MartinDelille
Copy link
Member

A facebook token is needed to retrieve event from the facebook page : https://github.com/atelierdesmedias/atelierdesmedias.github.io/blob/main/events.rb

It is stored in the action secret as FACEBOOK_TOKEN: https://github.com/atelierdesmedias/atelierdesmedias.github.io/settings/secrets/actions

Unfortunately it expires after several weeks so I implemented a renewal mechanism that update the token: https://github.com/atelierdesmedias/atelierdesmedias.github.io/blob/main/renew.rb

The renewal action is ran every two weeks and needs a github token. I didn't manage to use the action github token to renew an action secret so I use a personal fined grained access token: https://github.com/settings/tokens?type=beta

Unfortunately, this token has a maximum duration of 12 months.

I would be interested in finding a more reliable way to renew the facebook token. For example, I'm wondering if the standard github action token could not be used.

I tried to open all permissions here without success: https://github.com/atelierdesmedias/atelierdesmedias.github.io/blob/main/.github/workflows/renew.yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants