Skip to content

Commit

Permalink
using defaults in commands as github dosent allows secrets exposure i…
Browse files Browse the repository at this point in the history
…n inputs defaut
  • Loading branch information
shivamguys committed Apr 10, 2024
1 parent 4d315e0 commit 03e63d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/irctc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ on:
workflow_dispatch:
inputs:
USERNAME:
default: ${{ secrets.USERNAME }}
required: true
type: string
description: "Your IRCTC Username"
PASSWORD:
default: ${{ secrets.PASSWORD }}
required: true
type: string
description: "Your IRCTC Password"
Expand Down Expand Up @@ -45,4 +43,4 @@ jobs:
uses: cypress-io/github-action@v6
with:
browser: chrome
command: npx cypress run --record --key a15b31a6-b9ee-4678-b9ac-f45a190851fe --browser chrome --env USERNAME=${{ inputs.USERNAME }},PASSWORD=${{ inputs.PASSWORD }}
command: npx cypress run --record --key a15b31a6-b9ee-4678-b9ac-f45a190851fe --browser chrome --env USERNAME=${{ inputs.USERNAME || secrets.USERNAME }},PASSWORD=${{ inputs.PASSWORD || secrets.PASSWORD }}

0 comments on commit 03e63d5

Please sign in to comment.