Skip to content

Remove unneccessary access token from update workflow#597

Merged
dtandersen merged 1 commit intofactoriotools:masterfrom
putnam:removetoken
Dec 3, 2025
Merged

Remove unneccessary access token from update workflow#597
dtandersen merged 1 commit intofactoriotools:masterfrom
putnam:removetoken

Conversation

@putnam
Copy link
Copy Markdown

@putnam putnam commented Nov 14, 2025

It is not necessary to use a personal access token (PAT) for this action. Because it is defined, the PAT eventually will expire and the action will stop working as it has now. By leaving it empty, Github populates a one-time token at the start of the workflow that will work for this repo for the purpose of the action.

It is not necessary to use a PAT to check out a public repository. Because it is defined, the PAT eventually will expire and the action will stop working. By leaving it at default, the workflow generates a new Github token every time it runs which is enough to check out the repo.
@putnam
Copy link
Copy Markdown
Author

putnam commented Nov 14, 2025

Should result in the update workflow being fixed, the docker build resuming, and resolve #595

@phybros
Copy link
Copy Markdown

phybros commented Dec 1, 2025

Any chance of getting this merged soon @dtandersen? Would love to update my server to the latest stable without needing to switch to a fork

@SuperSandro2000
Copy link
Copy Markdown
Member

SuperSandro2000 commented Dec 1, 2025

Last time I checked, it is not possible for those tokens to push and trigger github actions https://github.com/factoriotools/factorio-docker/blob/master/update.sh#L168-L169

@putnam
Copy link
Copy Markdown
Author

putnam commented Dec 1, 2025 via email

@dtandersen
Copy link
Copy Markdown
Member

dtandersen commented Dec 1, 2025

I don't think this would affect the git push in update.sh, only the checkout. It looks fine to me, but I'm reluctant to push to master since I've been uninvolved for so long!

Are there any objections to merging?

@dtandersen dtandersen merged commit d5aa3e1 into factoriotools:master Dec 3, 2025
2 checks passed
@dtandersen
Copy link
Copy Markdown
Member

It is done. Hopefully nothing explodes!

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

Successfully merging this pull request may close these issues.

4 participants