{"id":20102958,"url":"https://github.com/stackrox/jenkins-plugin","last_synced_at":"2025-05-06T08:31:03.747Z","repository":{"id":37900661,"uuid":"224493623","full_name":"stackrox/jenkins-plugin","owner":"stackrox","description":"The StackRox Jenkins Plugin for image scanning and security","archived":false,"fork":false,"pushed_at":"2024-09-19T10:44:57.000Z","size":2129,"stargazers_count":5,"open_issues_count":5,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-26T11:50:39.662Z","etag":null,"topics":["containers","hacktoberfest","jenkins","k8s","security","stackrox"],"latest_commit_sha":null,"homepage":"https://plugins.jenkins.io/stackrox-container-image-scanner/","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackrox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-11-27T18:31:28.000Z","updated_at":"2024-09-04T09:21:49.000Z","dependencies_parsed_at":"2024-01-16T12:26:38.849Z","dependency_job_id":"22905db8-9949-45e3-8c87-07c046a4dd77","html_url":"https://github.com/stackrox/jenkins-plugin","commit_stats":null,"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fjenkins-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fjenkins-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fjenkins-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackrox%2Fjenkins-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackrox","download_url":"https://codeload.github.com/stackrox/jenkins-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224495982,"owners_count":17321025,"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","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":["containers","hacktoberfest","jenkins","k8s","security","stackrox"],"created_at":"2024-11-13T17:33:45.951Z","updated_at":"2024-11-13T17:33:46.930Z","avatar_url":"https://github.com/stackrox.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jenkins-plugin\n\nThe StackRox Jenkins Plugin for image scanning and security.\n\n## Configuration\n\nPlease take a look at [plugin README](stackrox-container-image-scanner/README.md)\n\n## Development\n\n### Setup\n\n0. Requirements\n\n- Podman/Docker\n- Java 8\n\n1. Create HPI file\n\n```\n cd stackrox-container-image-scanner\n ./mvnw package \u0026\u0026 ./mvnw hpi:hpi\n```\n\n2. Run Jenkins with plugin installed\n\n```\ncp  stackrox-container-image-scanner/target/stackrox-container-image-scanner.hpi jenkins/\ndocker build -t jenkins-test  jenkins\ndocker run -d --add-host host.docker.internal:host-gateway -p 8080:8080 jenkins-test\n```\n\n4. Run the E2E tests\n\n```\nexport JENKINS_ROX_ENDPOINT='https://host.docker.internal:8000' # endpoint accessed by jenkins\nexport ROX_ENDPOINT='https://localhost:8000' # endpoint accessed from local machine\nexport ROX_PASSWORD=... # stackrox admin password\nmake -C functionaltest-jenkins-plugin test\n```\n\n5. This project uses [Lombok](https://projectlombok.org/) so you may need to [enable Annotation Processing](https://stackoverflow.com/q/9424364/1387612)\n\n### Updating API Schema\n\n1. Go to recent version of running rox instance (e.g. `https://k8s.demo.stackrox.com`)\n2. Navigate to API Docs `/main/apidocs`\n3. Download OpenAPI specification (link may change between versions)\n4. Convert JSON to YAML (e.g. with https://editor.swagger.io/)\n5. Add authorization methods if it's not defined\n   - In `components:` add\n    ```yaml\n    securitySchemes:\n        basicAuth:\n            type: http\n            scheme: basic\n        bearerAuth:\n            type: http\n            scheme: bearer\n    ```\n    - In root add:\n    ```yaml\n    security:\n      - basicAuth: [ ]\n      - bearerAuth: [ ]\n    ```\n6. Save changes in `stackrox-container-image-scanner/api.yaml`\n\n## Release\n\nThe release process is managed by the [release.yml GitHub Action](https://github.com/stackrox/jenkins-plugin/actions/workflows/release.yml). \nWhen running the workflow, ensure that the correct version is specified in the workflow options. \nAfter the release, it typically takes a few hours for the plugin to be available on the \n[Jenkins Plugin site](https://plugins.jenkins.io/stackrox-container-image-scanner/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackrox%2Fjenkins-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackrox%2Fjenkins-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackrox%2Fjenkins-plugin/lists"}