{"id":37168959,"url":"https://github.com/pmarques/ifconfig.me","last_synced_at":"2026-01-14T19:57:28.161Z","repository":{"id":57576833,"uuid":"74314059","full_name":"pmarques/ifconfig.me","owner":"pmarques","description":"Simple HTTP application for demos and tests","archived":false,"fork":false,"pushed_at":"2026-01-12T21:06:24.000Z","size":1050,"stargazers_count":39,"open_issues_count":1,"forks_count":12,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-13T01:46:17.081Z","etag":null,"topics":["demo","docker","go","k8s-service"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pmarques.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-11-21T01:12:09.000Z","updated_at":"2026-01-12T21:06:28.000Z","dependencies_parsed_at":"2023-10-15T05:15:25.045Z","dependency_job_id":"69246e08-6bde-4cca-af88-740921844747","html_url":"https://github.com/pmarques/ifconfig.me","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pmarques/ifconfig.me","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarques%2Fifconfig.me","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarques%2Fifconfig.me/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarques%2Fifconfig.me/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarques%2Fifconfig.me/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmarques","download_url":"https://codeload.github.com/pmarques/ifconfig.me/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmarques%2Fifconfig.me/sbom","scorecard":{"id":738655,"data":{"date":"2025-08-20T20:34:20Z","repo":{"name":"github.com/pmarques/ifconfig.me","commit":"11b351f0706b6569649f9c7e5d231575f031d641"},"scorecard":{"version":"v5.2.1","commit":"ab2f6e92482462fe66246d9e32f642855a691dc1"},"score":8.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/1 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#code-review"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dependency-update-tool"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: .github/SECURITY.md:1","Info: Found linked content: .github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: .github/SECURITY.md:1","Info: Found text in security policy: .github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:  24 out of  24 GitHub-owned GitHubAction dependencies pinned","Info:  17 out of  17 third-party GitHubAction dependencies pinned","Info:   1 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":9,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:23","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:24","Info: jobLevel 'contents' permission set to 'read': .github/workflows/github-packages.yml:23","Info: jobLevel 'contents' permission set to 'read': .github/workflows/semgrep-scan.yml:18","Info: jobLevel 'contents' permission set to 'read': .github/workflows/snyk-security.yml:17","Info: topLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:16","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependabot-automerge.yaml:8","Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/dependabot-automerge.yaml:9","Info: topLevel 'contents' permission set to 'read': .github/workflows/docker-hub.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/github-packages.yml:15","Info: topLevel 'actions' permission set to 'read': .github/workflows/osv-scanner.yml:25","Warn: topLevel 'security-events' permission set to 'write': .github/workflows/osv-scanner.yml:27","Info: topLevel 'contents' permission set to 'read': .github/workflows/osv-scanner.yml:29","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:18","Info: topLevel 'contents' permission set to 'read': .github/workflows/semgrep-scan.yml:13","Info: topLevel 'contents' permission set to 'read': .github/workflows/snyk-iac.yml:16","Info: topLevel 'contents' permission set to 'read': .github/workflows/snyk-security.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/snyk.yml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/tests-and-checks.yml:20","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#cii-best-practices"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":10,"reason":"project is fuzzed","details":["Info: GoBuiltInFuzzer integration found: handlers/ip/ip_test.go:89"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#branch-protection"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Info: FSF or OSI recognized license: MIT License: LICENSE.md:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/docker-hub.yml:15"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#packaging"}},{"name":"Contributors","score":3,"reason":"project has 1 contributing companies or organizations -- score normalized to 3","details":["Info: found contributions from: proofpoint"],"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#contributors"}},{"name":"SAST","score":10,"reason":"SAST tool detected","details":["Info: SAST configuration detected: CodeQL","Info: SAST configuration detected: Snyk","Info: SAST configuration detected: Snyk","Info: SAST configuration detected: Snyk","Info: SAST configuration detected: Snyk","Info: SAST configuration detected: Snyk","Info: all commits (30) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#sast"}},{"name":"CI-Tests","score":10,"reason":"15 out of 15 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ab2f6e92482462fe66246d9e32f642855a691dc1/docs/checks.md#ci-tests"}}]},"last_synced_at":"2025-08-22T16:40:54.081Z","repository_id":57576833,"created_at":"2025-08-22T16:40:54.081Z","updated_at":"2025-08-22T16:40:54.081Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28433753,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["demo","docker","go","k8s-service"],"created_at":"2026-01-14T19:57:27.556Z","updated_at":"2026-01-14T19:57:28.154Z","avatar_url":"https://github.com/pmarques.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go version of ifconfig.me\n\n[![Publish Container image to DockerHub](https://github.com/pmarques/ifconfig.me/actions/workflows/docker-hub.yml/badge.svg)](https://github.com/pmarques/ifconfig.me/actions/workflows/docker-hub.yml)\n[![Build Status](https://pmarques.semaphoreci.com/badges/ifconfig.me/branches/master.svg)](https://pmarques.semaphoreci.com/projects/ifconfig.me)\n[![CircleCI](https://circleci.com/gh/pmarques/ifconfig.me.svg?style=svg)](https://circleci.com/gh/pmarques/ifconfig.me)\n\n[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/pmarques/ifconfig.me/badge)](https://api.securityscorecards.dev/projects/github.com/pmarques/ifconfig.me)\n\nThis was my first project using go, a simple HTTP server that returns your public IP address.\nI'm using this project for demos and learning about Docker, Go and experiment some workflows.\n\n## Requirements\n\n * GO \u003e=1.9 (otherwise the steps in this readme will not work)\n\n## Development\n\n### Run\n```\ngo run app/main.go\n```\n\n### Test\n\n```\ngo test ./...\n```\n\n## Create binary\n\n### Build / Compile\n```\ngo build -o ifconfig.me app/main.go\n```\n\n### Run\n\n```\n./ifconfig.me\n```\n\n## Docker\n\n* Build\n\n```bash\ndocker build -t ifconfig.me .\n```\n\n* Run\n\n```bash\ndocker run -p 8080:80 ifconfig.me\n```\n\n## Kubernetes\n\n```\nkubectl apply -f k8s\n```\n\n### Debug container\n\nSince there is no OS or utils in the container we need to use Ephemeral Containers. For\nmore info check https://kubernetes.io/docs/concepts/workloads/pods/ephemeral-containers/\n\n```\nkubectl -n ifconfig debug -it ifconfig-646c744cbc-8nkfn --image=busybox --target=ifconfig\n```\n\n# References\n\n* [Static Go Binaries](https://medium.com/@kelseyhightower/optimizing-docker-images-for-static-binaries-b5696e26eb07)\n* [Multi-stage Builds](https://docs.docker.com/engine/userguide/eng-image/multistage-build/#use-multi-stage-builds)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmarques%2Fifconfig.me","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmarques%2Fifconfig.me","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmarques%2Fifconfig.me/lists"}