From 20cf71c7bf5d8b44b5d10de5d7a761e729ffb018 Mon Sep 17 00:00:00 2001 From: Alex Hung Date: Tue, 21 May 2024 15:20:03 -0700 Subject: [PATCH] Project files clean up --- .github/workflows/release.yml | 3 +- http/http-client.env.json | 10 ---- http/projects.http | 94 ----------------------------------- sample.tf | 2 +- 4 files changed, 2 insertions(+), 107 deletions(-) delete mode 100644 http/http-client.env.json delete mode 100644 http/projects.http diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86578ab0..13d71ece 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,8 +18,7 @@ jobs: goreleaser: runs-on: ubuntu-latest if: | - (startsWith(github.ref, 'refs/tags/') && github.event.base_ref == 'refs/heads/master') - || (startsWith(github.ref, 'refs/tags/') && github.event.base_ref == 'refs/heads/v6') + (startsWith(github.ref, 'refs/tags/') && github.event.base_ref == 'refs/heads/master') steps: - name: Checkout diff --git a/http/http-client.env.json b/http/http-client.env.json deleted file mode 100644 index ee252265..00000000 --- a/http/http-client.env.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "localhost" : { - "host" : "http://localhost:8081", - "prjKey" : "christ", - "user" : "cbongiorno" - }, - "partnership": { - "host" : "https://partnership.jfrog.io" - } -} diff --git a/http/projects.http b/http/projects.http deleted file mode 100644 index 93f407a3..00000000 --- a/http/projects.http +++ /dev/null @@ -1,94 +0,0 @@ -GET {{ host }}/access/api/v1/projects -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} -### - - - -POST {{ host }}/access/api/v1/projects -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} - -{ - "display_name": "prj-{{ $uuid }}", - "description": "a test project", - "admin_privileges": { - "manage_members": true, - "manage_resources": true, - "manage_security_assets": true, - "index_resources": true, - "allow_ignore_rules": true - }, - "storage_quota_bytes": -1, - "project_key": "{{prjKey}}" -} - -### -GET {{ host }}/access/api/v1/projects/{{prjKey}}/ -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} - -### -GET {{ host }}/access/api/v1/projects/{{prjKey}}/users/ -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} - -### -GET {{ host }}/access/api/v1/projects/{{prjKey}}/roles/ -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} -### - -GET {{ host }}/access/api/v1/projects/{{prjKey}}/roles/Project%20Admin -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} -### - -GET {{ host }}/access/api/v1/projects/{{prjKey}}/users/{{user}} -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} - -### the role is case sensitive and the user won't show up if it's wrong and you won't get rejected -PUT {{ host }}/access/api/v1/projects/{{prjKey}}/users/{{user}} -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} - -{ - "roles": [ - "Developer", - "Project Admin" - ] -} -### there is no way to determine which repositories are in a project -## even the UI doesn't work -GET {{ host }}/artifactory/api/repositories/?prjKey={{prjKey}} -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} -### - -GET {{ host }}/ui/api/v1/projects/{{prjKey}}/ -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} - -### the group 'writeAccess' exists in the UI but not here -GET {{ host }}/access/api/v1/projects/{{prjKey}}/groups/ -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} - -### the group 'writeAccess' exists in the UI but not here -GET {{ host }}/access/api/v1/projects/{{prjKey}}/groups/readers -Accept: application/json -Content-Type: application/json -Authorization: Bearer {{ token }} - diff --git a/sample.tf b/sample.tf index e2d68ffc..d77dd6a0 100644 --- a/sample.tf +++ b/sample.tf @@ -2,7 +2,7 @@ terraform { required_providers { project = { source = "jfrog/project" - version = "1.5.1" + version = "1.5.3" } } }