Skip to content

[Security] Secure and Sanitize Twillio API #341

[Security] Secure and Sanitize Twillio API

[Security] Secure and Sanitize Twillio API #341

Workflow file for this run

name: Measure issue timestamp
on:
issues:
types: [assigned]
jobs:
record_issue_timestamp:
runs-on: ubuntu-latest
if: github.event_name == 'issues'
steps:
- name: Checkout the repo
uses: actions/checkout@v3
- name: Create branch linked to the issue
id: create_branch
run: |
issue_number=$(echo "${{ github.event.issue.number }}")
git checkout -b "issue-${issue_number}"
echo "::set-output name=issue_branch::issue-${issue_number}"
- name: Install
run: npm install
working-directory: ./roiScript
- name: Run
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
run: node ./roiScript/log-branch.mjs
- name: Log Current Branch (debugging)
run: |
current_branch=$(git rev-parse --abbrev-ref HEAD)
echo "Currently checked out branch: $current_branch"
- name: Add Issue Timestamp To File
working-directory: roiScript
run: |
issue_num=$(echo "${{ github.event.issue.number }}")
timestamp=$(date +"%Y-%m-%d %H:%M:%S")
echo "$GITHUB_ACTOR, issue #${issue_num}: $timestamp" >> issue_timestamp.log
- name: Commit Issue Timestamp
run: |
git config --global user.email "Polinka7max@gmail.com"
git config --global user.name "Dunridge"
git add .
git commit -m "Add issue timestamp by $GITHUB_ACTOR"
git push https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }}.git