{"id":20872768,"url":"https://github.com/zalari/action-mc","last_synced_at":"2026-04-01T23:40:44.392Z","repository":{"id":81977552,"uuid":"269457124","full_name":"zalari/action-mc","owner":"zalari","description":"A GitHub action for exposing the MinIO Client to your workflow for all your cheapo S3 needs","archived":false,"fork":false,"pushed_at":"2020-06-04T21:51:30.000Z","size":7,"stargazers_count":0,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-27T23:42:41.399Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","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/zalari.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"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}},"created_at":"2020-06-04T20:19:24.000Z","updated_at":"2020-06-04T21:51:33.000Z","dependencies_parsed_at":"2023-03-12T14:29:23.290Z","dependency_job_id":null,"html_url":"https://github.com/zalari/action-mc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zalari/action-mc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Faction-mc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Faction-mc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Faction-mc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Faction-mc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zalari","download_url":"https://codeload.github.com/zalari/action-mc/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zalari%2Faction-mc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31293017,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T21:15:39.731Z","status":"ssl_error","status_checked_at":"2026-04-01T21:15:34.046Z","response_time":53,"last_error":"SSL_read: 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":[],"created_at":"2024-11-18T06:20:51.018Z","updated_at":"2026-04-01T23:40:44.368Z","avatar_url":"https://github.com/zalari.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MC\nA GitHub action for exposing the MinIO Client to your workflow for all your cheapo S3 needs\n\n## Usage\n\nThis example will create a S3 bucket called `testruction` at _service url_ `https://play.min.io` and set the `download` _policy_ for it.\n\n```yml\n    - name: Create a bucket\n      uses: zalari/action-mc@master\n      env:\n        AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}\n        AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n        MC_URL: https://play.min.io\n        MC_ALIAS: play\n      with:\n        args: mb create play/testruction -p\n    - name: Set anonymous download policy on bucket\n      uses: zalari/action-mc@master\n      env:\n        AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}\n        AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n        MC_URL: https://play.min.io\n        MC_ALIAS: minio\n      with:\n        args: policy set download play/testruction\n```\nIt is just a wrapper for the [MinIO Client](https://github.com/minio/mc).\nActual arguments are passed to the action via the `args` parameter.\n\n#### Secrets and environment variables\n\nThe following variables may be passed to the action as secrets or environment variables. \n\n- `AWS_ACCESS_KEY_ID` (**required**) - The storage service access key id.\n- `AWS_SECRET_ACCESS_KEY` (**required**) - The storage service secret access key.\n- `MC_ALIAS` - The mc config host alias. _Defaults_ to `s3`\n- `MC_URL` - The URL to the object storage service. _Defaults_ to `https://s3.amazonaws.com` for Amazon S3.\n- `MC_API_SIGNATURE` - The api signature to use for creating the host config. _Defaults_ to `S3v4`, can alternatively `S3v2`.\n- `MC_BUCKET_LOOKUP` - The bucket lookup to use for creating the host config. _Defaults_ to `auto`, can be `dns` or `path` as well.\n\n## Complete workflow example\n\nThe workflow copies everything from a `dist` dir to a newly dynamically generated bucket from the branch name with anonymous download policy set. Also known as poor man's netlify.\n\n```yml\nname: Poor man's netlify static site deployment\non:\n  push:\n    branches:\n      - master\njobs:\n  publish-to-public-bucket:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - name: Create test data\n        run: mkdir dist \u0026\u0026 uptime \u003e dist/uptime.txt\n      # taken from -\u003e https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions#comment102508135_58034787\n      - name: Extract branch name\n        shell: bash\n        run: echo \"##[set-output name=branch;]$(echo ${GITHUB_REF##*/})\"\n        id: extract_branch\n      - name: Create a bucket from branch name\n        uses: zalari/action-mc@master\n        env:\n          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}\n          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n          MC_URL: https://play.min.io\n          MC_ALIAS: play\n        with:\n          args: mb create play/testruction-${{ steps.extract_branch.outputs.branch }} -p\n      - name: Set anonymous download policy on bucket\n        uses: zalari/action-mc@master\n        env:\n          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}\n          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n          MC_URL: https://play.min.io\n          MC_ALIAS: minio\n        with:\n          args: policy set download play/testruction-${{ steps.extract_branch.outputs.branch }}\n      - name: Upload dist to public bucket\n        uses: zalari/action-mc@master\n        env:\n          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}\n          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n          MC_URL: https://play.min.io\n          MC_ALIAS: minio\n        with:\n          args: cp -r dist/ play/testruction-${{ steps.extract_branch.outputs.branch }}\n```\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzalari%2Faction-mc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzalari%2Faction-mc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzalari%2Faction-mc/lists"}