Skip to content

Commit

Permalink
Create gist-call.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
h0x0er authored Mar 18, 2024
1 parent e5dc3a4 commit c81da59
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/gist-call.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@

name: Gist Call

on:
workflow_dispatch:

jobs:
Test:
runs-on: ubuntu-latest
steps:

- name: Harden Runner
uses: step-security/harden-runner@int
with:
disable-sudo: true
egress-policy: audit

- name: Gist call
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/gists \
-d '{"description":"Example of a gist","public":false,"files":{"README.md":{"content":"Hello World"}}}'

0 comments on commit c81da59

Please sign in to comment.