Accessing the Github token from a Github action

For each Github action workflow, Github creates a unique Github token. This can accessed a either via the GITHUB_TOKEN secret (${{ secrets.GITHUB_TOKEN }}) or via the github context (${{ github.token }}). The docs also note that

An action can access the GITHUB_TOKEN through the github.token context even if the workflow does not explicitly pass the GITHUB_TOKEN to the action.

However the docs fall short of showing how to do it, and it took me a while to figure it out, so I’m sharing it here.

Read more

Thoughts on the future of the real estate market of Tokyo

This is a continuation of my previous post on buying vs renting in Tokyo

The future resale price of a property depends on demand: are there going to be people willing and able to purchase it? Let’s look into the forecasts affecting this. I will try my best to use official (government) statistics and forecasts, even if these are a few years outdated.

Read more

Thoughts on renting vs buying in Tokyo

Recently I’ve been thinking a lot about buying either a house or an apartment (mansion), or whether renting makes more sense for now. The primary aim of this post is to collect my thoughts, and record the decision so that I can revisit it in the future. It might also help others considering the same question, but that’s not the main intention (e.g. I will focus exclusively on my use-case and not cover other locations or sizes).

Read more

Vitus Zenium Road Bike (Tiagra) 2020 Specifications

I bought a Vitus Zenium Road Bike ( in 2020 from Chain Reaction Cycles and as the years go by I keep going back to the product page to check the various details of the bike. Considering that the company releases a new version of the bike every year, I’m afraid that at some point the product page will be taken down, so I decided to copy all the information over here.

Read more

All-World ETFs for NISA

My go-to investment is the Vanguard Total World Stock ETF (VT) that includes stocks in close to all companies of the world, so as long as the world economy does well, it goes up. Being a US-based security the dividends are subject to a 10% tax withholding in the US (regardless of me not having to file US taxes). This is not an issue for regular investments, as Japan levies a 20% tax on dividends and due to the tax treaty with the US I can deduct the already paid 10% and only pay the other 10% in Japan (I’m using Interactive Brokers, so I’m doing this myself when filing my taxes).

However I also started doing NISA recently, which is tax-exempt, so I don’t need to pay taxes in Japan on neither the capital gains nor the dividends. But this does not affect the 10% dividend tax levied in the US. So I set out to find a comparable investment that is domiciled outside the US.

Read more