Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
59 lines (55 loc) · 1.8 KB
/
Copy pathaction.yml
File metadata and controls
59 lines (55 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: 'IPData.info IP Lookup'
description: >-
Look up geolocation, ASN, and threat/proxy flags for an IP address using the
free ipdata.info API. No signup required for the public endpoint (50
req/min); add an API key for higher limits.
author: 'ipdata.info'
branding:
icon: 'map-pin'
color: 'blue'
inputs:
ip:
description: 'IPv4 or IPv6 address to look up.'
required: true
api_key:
description: >-
Optional ipdata.info API key. Recommended to pass it from a repository
secret via the workflow. Omit for free-tier anonymous lookups.
required: false
default: ''
host:
description: 'API host to query.'
required: false
default: 'https://ipdata.info'
outputs:
country:
description: 'Full country name (e.g. "United States").'
value: ${{ steps.lookup.outputs.country }}
country_code:
description: 'ISO 3166-1 alpha-2 country code (e.g. "US").'
value: ${{ steps.lookup.outputs.country_code }}
asn:
description: 'Autonomous System Number (e.g. 15169).'
value: ${{ steps.lookup.outputs.asn }}
asn_org:
description: 'ASN organization name (e.g. "Google LLC").'
value: ${{ steps.lookup.outputs.asn_org }}
is_proxy:
description: 'true/false — whether the IP is a known proxy.'
value: ${{ steps.lookup.outputs.is_proxy }}
threat_listed:
description: 'true/false — whether security.tor/proxy/vpn/hosting is set.'
value: ${{ steps.lookup.outputs.threat_listed }}
json:
description: 'Full raw JSON response from the API.'
value: ${{ steps.lookup.outputs.json }}
runs:
using: 'composite'
steps:
- id: lookup
shell: bash
run: ${{ github.action_path }}/scripts/lookup.sh
env:
INPUT_IP: ${{ inputs.ip }}
INPUT_API_KEY: ${{ inputs.api_key }}
INPUT_HOST: ${{ inputs.host }}