I am using the github marketplace action 'github-script'. The code for which can be seen here. In particular I am using it to create a tag in my repo as described here. I suspect behind the scenes it is accessing secrets.GITHUB_TOKEN
or something equivalent because as far as I know this is required to interact with the API. First, I'd like to know if this is in fact the case.
Second, I created a custom action within my organization which creates a tag, thereby bypassing the need for github-script in this particular case. For this custom action to work, I need to pass it secrets.GITHUB_TOKEN
like so:
name: create tag
steps:
- id: create-tag
uses: my-org/customTaggingAction@v1.0.0
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
I'd like to know if this is a security concern, and to what extent using 'github-script' is more or less secure in terms of passing around the GITHUB_TOKEN.