Skip to content

Improve facebook token renewal #59

@MartinDelille

Description

@MartinDelille

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions