Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CyberAndrii/steam-totp
:octocat: :rocket: An action that generates Steam auth codes.
https://github.com/CyberAndrii/steam-totp
2fa auth steam steam-api steam-auth steam-authentication steam-client steam-totp steamcmd totp valve
Last synced: about 1 month ago
JSON representation
:octocat: :rocket: An action that generates Steam auth codes.
- Host: GitHub
- URL: https://github.com/CyberAndrii/steam-totp
- Owner: CyberAndrii
- License: mit
- Created: 2020-08-27T12:43:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-13T13:00:05.000Z (11 months ago)
- Last Synced: 2024-10-14T13:31:21.078Z (2 months ago)
- Topics: 2fa, auth, steam, steam-api, steam-auth, steam-authentication, steam-client, steam-totp, steamcmd, totp, valve
- Language: JavaScript
- Homepage:
- Size: 114 KB
- Stars: 9
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# steam-totp
[![Test](https://github.com/CyberAndrii/steam-totp/workflows/Test/badge.svg)](https://github.com/CyberAndrii/steam-totp/actions)
[![License: MIT](https://img.shields.io/github/license/CyberAndrii/steam-totp?label=License)](LICENSE)This action generates Steam's two factor auth codes for use in actions.
# Usage
The following example logins into SteamCMD.
```yaml
steps:
- name: Setup steamcmd
uses: CyberAndrii/setup-steamcmd@v1
- name: Generate auth code
id: generate
uses: CyberAndrii/steam-totp@v1
with:
shared_secret: ${{ secrets.STEAM_SHARED_SECRET }}
- run: steamcmd +login ${{ secrets.STEAM_USERNAME }} ${{ secrets.STEAM_PASSWORD }} ${{ steps.generate.outputs.code }} +quit
```
It also uses [setup-steamcmd](https://github.com/CyberAndrii/setup-steamcmd) action.
# Inputs| name | description | required | default |
|---------------|---------------------------------------------------------------|----------|---------|
| shared_secret | Shared secret from the .maFile. | true | |
| time_offset | The number of seconds that will be added to the current time. | false | 0 |# Outputs
| name | description |
|------|----------------------|
| code | Generated auth code. |