{"id":49373880,"url":"https://github.com/licenseware/unique-elbv2-listener-rule-priority","last_synced_at":"2026-04-28T01:07:33.116Z","repository":{"id":40469211,"uuid":"489056505","full_name":"licenseware/unique-elbv2-listener-rule-priority","owner":"licenseware","description":"Create unique priority for Elastic Load Balancer Listener Rule","archived":false,"fork":false,"pushed_at":"2026-04-19T03:50:07.000Z","size":20,"stargazers_count":2,"open_issues_count":7,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-19T05:30:56.647Z","etag":null,"topics":["aws","elasticloadbalancing","github-actions"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/licenseware.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-05-05T16:55:04.000Z","updated_at":"2024-07-25T02:14:50.000Z","dependencies_parsed_at":"2024-11-15T22:38:50.379Z","dependency_job_id":"530faeae-26e0-4dbf-88da-34f0f2948567","html_url":"https://github.com/licenseware/unique-elbv2-listener-rule-priority","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"0c46878f478b843f93d450ce5cd62ded63d4c27d"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/licenseware/unique-elbv2-listener-rule-priority","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licenseware%2Funique-elbv2-listener-rule-priority","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licenseware%2Funique-elbv2-listener-rule-priority/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licenseware%2Funique-elbv2-listener-rule-priority/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licenseware%2Funique-elbv2-listener-rule-priority/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/licenseware","download_url":"https://codeload.github.com/licenseware/unique-elbv2-listener-rule-priority/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/licenseware%2Funique-elbv2-listener-rule-priority/sbom","scorecard":{"id":588461,"data":{"date":"2025-08-11","repo":{"name":"github.com/licenseware/unique-elbv2-listener-rule-priority","commit":"9e9e927224c9b747bdc9778baf2ed73c1062edfb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/8 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build-image.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":"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":"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":"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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/build-image.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/licenseware/unique-elbv2-listener-rule-priority/build-image.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-image.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/licenseware/unique-elbv2-listener-rule-priority/build-image.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-image.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/licenseware/unique-elbv2-listener-rule-priority/build-image.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-image.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/licenseware/unique-elbv2-listener-rule-priority/build-image.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-image.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/licenseware/unique-elbv2-listener-rule-priority/build-image.yml/main?enable=pin","Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating python:3.11-alpine to python:3.11-alpine@sha256:8d8c6d3808243160605925c2a7ab2dc5c72d0e75651699b0639143613e0855b8","Warn: pipCommand not pinned by hash: Dockerfile:9","Info:   0 out of   1 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned","Info:   0 out of   1 pipCommand 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":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/build-image.yml:12"],"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":"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"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":"SAST","score":1,"reason":"SAST tool is not run on all commits -- score normalized to 1","details":["Warn: 1 commits out of 7 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-20T21:11:08.196Z","repository_id":40469211,"created_at":"2025-08-20T21:11:08.196Z","updated_at":"2025-08-20T21:11:08.196Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32361482,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["aws","elasticloadbalancing","github-actions"],"created_at":"2026-04-28T01:07:32.375Z","updated_at":"2026-04-28T01:07:33.110Z","avatar_url":"https://github.com/licenseware.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unique ELBv2 Listener Rule Priority\n\nWithout any conflict, generate random priotity for a Elastic Load Balancer\nListener Rule.\n\n## Usage\n\n### Prerequisites\n\nFor each kind of run, you will need to configure the credentials first, so\nconsider adding the following step before each of the below approaches:\n\n```yaml\n      - name: Configure AWS credentials\n        uses: aws-actions/configure-aws-credentials@v1\n        with:\n          aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}\n          aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}\n          aws-region: ${{ env.REGION }}\n```\n\nFor this to work, you also need a user with (at least) the following policies\n(hopefully in a cloud formation template):\n\n```yaml\n  GitHubActionsUser:\n    Type: AWS::IAM::User\n    Properties:\n      UserName: !Ref GitHubActionsUserName\n\n  # The permissions that the GitHub Actions deployment workflow will have\n  GitHubActionsUserPolicy:\n    Type: AWS::IAM::Policy\n    Properties:\n      Users:\n        - !Ref GitHubActionsUser\n      PolicyName: allow-github-actions-cloudformation-deploy\n      PolicyDocument:\n        Version: \"2012-10-17\"\n        Statement:\n          - Action:\n              - \"elasticloadbalancing:DescribeRules\"\n            Effect: Allow\n            Resource: \"*\"\n```\n\n### Produce only one priority\n\n```yaml\n      - uses: licenseware/unique-elbv2-listener-rule-priority@v1\n        name: Get unique listerner rule priority\n        id: elb-priority\n        with:\n          listener-arn: ${{ secrets.LOAD_BALANCER_LISTENER_ARN }}\n\n      - uses: aws-actions/aws-cloudformation-github-deploy@v1\n        with:\n          name: sample-elb-priority\n          template: cloudformation-templates/myapp-dev.yml\n          no-fail-on-empty-changeset: \"1\"\n          role-arn: ${{ secrets.CLOUD_FORMATION_ROLE_ARN }}\n          parameter-overrides: \u003e-\n            MyAppLBPriority=${{ steps.elb-priority.outputs.priorities }}\n```\n\n### Produce multiple priorities\n\n```yaml\n      - uses: licenseware/unique-elbv2-listener-rule-priority@v1\n        name: Get unique listerner rule priority\n        id: elb-priority\n        with:\n          listener-arn: ${{ secrets.LOAD_BALANCER_LISTENER_ARN }}\n          sorted: true\n          delimiter: \" \"\n          count: 3\n\n      - name: Get load balancer priorities\n        run: |\n          export PRIORITIES=$(echo ${{ steps.elb-priority.outputs.priorities }})\n\n          cat \u003c\u003c EOF \u003e\u003e $GITHUB_ENV\n          MYAPP_LB_PR=$(echo $PRIORITIES | awk '{print $1}')\n          YOURAPP_LB_PR=$(echo $PRIORITIES | awk '{print $2}')\n          HISAPP_LB_PR=$(echo $PRIORITIES | awk '{print $3}')\n          EOF\n\n      - uses: aws-actions/aws-cloudformation-github-deploy@v1\n        with:\n          name: sample-elb-priority\n          template: cloudformation-templates/myapp-dev.yml\n          no-fail-on-empty-changeset: \"1\"\n          role-arn: ${{ secrets.CLOUD_FORMATION_ROLE_ARN }}\n          parameter-overrides: \u003e-\n            MyAppLBPriority=${{ env.MYAPP_LB_PR }},\n            YourAppLBPriority=${{ env.YOURAPP_LB_PR }},\n            HisAppLBPriority=${{ env.HISAPP_LB_PR }}\n```\n\n## Inputs\n\n| Name | Description | Required | Default |\n|------|-------------|----------|---------|\n| listener-arn | The ARN of the ELBv2 Listener to generate the priority for. | true |\n| count | The number of priorities to generate. | false | 1 |\n| min-priority | The minimum priority to use. | false | -1000 |\n| max-priority | The maximum priority to use. | false | 1000 |\n| max-try | The maximum number of tries to generate a unique priority. | false | 10 |\n| log-level | The log level to use. | false | error |\n| sorted | Whether to sort the resulting priorities. | false | true |\n| delimiter | The delimiter to use on the resulting the priorities. | false | \",\" |\n\n## Outputs\n\n| Name | Description | Example |\n|------|-------------|---------|\n| priorities | Comma-separated list of generated priorities. | 1,2,3 |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flicenseware%2Funique-elbv2-listener-rule-priority","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flicenseware%2Funique-elbv2-listener-rule-priority","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flicenseware%2Funique-elbv2-listener-rule-priority/lists"}