{"id":18518480,"url":"https://github.com/devicons/public-upload-to-imgur","last_synced_at":"2025-08-27T11:16:02.582Z","repository":{"id":47691104,"uuid":"321169879","full_name":"devicons/public-upload-to-imgur","owner":"devicons","description":"A GitHub Action that can upload images to Imgur using their API","archived":false,"fork":false,"pushed_at":"2025-02-13T21:54:23.000Z","size":395,"stargazers_count":26,"open_issues_count":7,"forks_count":10,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-08-01T09:40:24.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"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/devicons.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-12-13T22:06:48.000Z","updated_at":"2025-07-31T14:27:07.000Z","dependencies_parsed_at":"2024-06-18T16:59:31.006Z","dependency_job_id":"b63de675-1579-43c6-a5d4-e8d3fc258f4c","html_url":"https://github.com/devicons/public-upload-to-imgur","commit_stats":{"total_commits":41,"total_committers":4,"mean_commits":10.25,"dds":0.2682926829268293,"last_synced_commit":"ce956059688dc7d5cd048c63fc63b367de3c8a26"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/devicons/public-upload-to-imgur","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicons%2Fpublic-upload-to-imgur","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicons%2Fpublic-upload-to-imgur/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicons%2Fpublic-upload-to-imgur/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicons%2Fpublic-upload-to-imgur/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devicons","download_url":"https://codeload.github.com/devicons/public-upload-to-imgur/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devicons%2Fpublic-upload-to-imgur/sbom","scorecard":{"id":337593,"data":{"date":"2025-08-11","repo":{"name":"github.com/devicons/public-upload-to-imgur","commit":"5b1accf3ad04eaa5d97cbe673496d14036d1c23c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":5,"reason":"Found 8/16 approved changesets -- score normalized to 5","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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/demo.yml:1","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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/demo.yml:8: update your workflow using https://app.stepsecurity.io/secureworkflow/devicons/public-upload-to-imgur/demo.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/demo.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/devicons/public-upload-to-imgur/demo.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/demo.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/devicons/public-upload-to-imgur/demo.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/demo.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/devicons/public-upload-to-imgur/demo.yml/main?enable=pin","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-7r3h-m5j6-3q42","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-4w2v-q235-vp99","Warn: Project is vulnerable to: GHSA-cph5-m8f7-6c5x","Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx","Warn: Project is vulnerable to: GHSA-jr5f-v2jv-69x6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-74fj-2j2h-c42q","Warn: Project is vulnerable to: GHSA-pw2r-vq6v-hr8c","Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc","Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T05:06:58.241Z","repository_id":47691104,"created_at":"2025-08-18T05:06:58.241Z","updated_at":"2025-08-18T05:06:58.241Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272325394,"owners_count":24914642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-06T17:13:30.942Z","updated_at":"2025-08-27T11:16:02.544Z","avatar_url":"https://github.com/devicons.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Publish to Imgur\n\nA GitHub Action that can upload \"anonymous\" images to Imgur using their API that gives you the URL of the newly created image.\nNote: By \"anonymous\" we mean that the image is not tied to an account (see [this](https://apidocs.imgur.com/#intro)).\n\n**Purpose**\n\nThis action is used as part of the Peek Icons workflow in the [Devicon](https://github.com/devicons/devicon) repository to automate the\nicon checking process. Our workflow would generate screenshots using Selenium, upload it to Imgur (using this action), then publish a comment on a PR showing the result (using [another action](https://github.com/marketplace/actions/pr-comment)).\n\n## How To Use\n\n**Prerequisites**\n\n1. Sign up for an API client ID (see [this](https://apidocs.imgur.com/#intro)).\n\n  * Note: You do not need an OAuth token for this action.\n\n2. Add the client id to the repo's secrets (see [this](https://docs.github.com/en/free-pro-team@latest/actions/reference/encrypted-secrets#in-this-article))\n\n**Input**\n\n```yaml\npath:\n  description: 'Path to the images. Can be a single file path, folder, or glob.'\n  required: true\nclient_id:  \n  description: 'The CLIENT_ID of your Imgur app'\n  required: true\ndescription:  \n  description: 'A description for this set of images'\n  default: \"Images uploaded by public-upload-to-imgur GitHub Action\"\n  required: false\n```\n\n**Output**\n\n```plaintext\n  imgur_urls: \n    description: 'The urls to the images as a JSON.stringified array.'\n    example: '[\"https://i.imgur.com/j1KnFp1.png\", \"https://i.imgur.com/UfhRqDR.png\"]'\n  markdown_urls:\n    description: 'The urls to the images in GitHub image markdown formats as a JSON.stringified array.'\n    example: '[\"![Imgur Images](https://i.imgur.com/j1KnFp1.png)\", \"![Imgur Images](https://i.imgur.com/UfhRqDR.png)\"]'\n```\n\n**Upload a Picture Only**\n\n```yaml\nsteps:\n  - name: Upload a picture\n    uses: devicons/public-upload-to-imgur@v2.2.2  # Use this for the most stable version\n    with:\n      path: ./img.png  # required\n      client_id: ${{secrets.IMGUR_CLIENT_ID}}  # required\n      description: My picture  # optional\n```\n\n**Using the output after uploading one file**\n\n```yaml\nsteps:\n  - name: Upload a picture\n    uses: devicons/public-upload-to-imgur@v2.2.2\n    id: imgur_step\n    with:\n      path: ./img.png \n      client_id: ${{secrets.IMGUR_CLIENT_ID}} \n    - name: Comment on the PR about the result\n      uses: github-actions-up-and-running/pr-comment@v1.0.1  # you can use any action that you want. This is only an example\n      env:\n        # recall that this action returns a JSON.stringified array\n        IMG_URL: ${{ fromJSON(steps.imgur_step.outputs.imgur_urls)[0] }}  # get the output of the step above using its id\n        MESSAGE: |\n          Here is the picture that was uploaded:\n          ![Image]({0}) # markdown syntax for displaying a picture\n      with:\n        repo-token: ${{ secrets.GITHUB_TOKEN }}\n        message: ${{format(env.MESSAGE, env.IMG_URL)}}  # add the url into the string\n```\n\n**Upload Content of a Directory**\n\n```yaml\n- uses: devicons/public-upload-to-imgur@v2.2.2\n  with:\n    path: path/to/images/ # or path/to/images\n    client_id: ${{secrets.IMGUR_CLIENT_ID}} \n```\n\n**Multiple Paths**\n\n```yaml\n- uses: devicons/public-upload-to-imgur@v2.2.2\n  with:\n  path: |\n      path/output/bin/\n      path/output/test-results\n      !path/**/*.tmp\n```\n\n**Wild Cards**\n\n```yaml\n- uses: devicons/public-upload-to-imgur@v2.2.2\n  with:\n  path: path/**/[abc]rtifac?/*\n```\n\n**Real Life Examples**\n\nHere's an usecase from our [Devicon](https://github.com/devicons/devicon) repository:\n\n![GitHub bot using the action](docs/example.PNG)\n\nYou can also view the [example workflow](https://github.com/devicons/public-upload-to-imgur/blob/main/.github/workflows/demo.yml) and the [resulting action](https://github.com/devicons/public-upload-to-imgur/actions/runs/453537510) in this repository.\n\n## Credits\n\nThe script for parsing multiple paths and glob inputs was taken from the [`upload-artifacts`](https://github.com/actions/upload-artifact/blob/main/src/search.ts) repo.\n\nIts conversion from TypeScript to JavaScript was done using [ExtendsClass](https://extendsclass.com/typescript-to-javascript.html)\n\nThe [API](https://apidocs.imgur.com/#intro) is provided by Imgur.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevicons%2Fpublic-upload-to-imgur","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevicons%2Fpublic-upload-to-imgur","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevicons%2Fpublic-upload-to-imgur/lists"}