Skip to content

Commit 2a35c74

Browse files
authored
Merge pull request #50 from newrelic/update-pat
chore: replace personal PAT with service PAT
2 parents eebdaa7 + 73cf95f commit 2a35c74

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

.github/workflows/fossa-caos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
1414
ORG: ${{ github.repository_owner }}
1515
REPO: ${{ github.repository }}
16-
ORG_ADMIN_PAT: ${{ secrets.ELAGUERTA_PAT }}
16+
CUSTOM_PROPS_PAT: ${{ secrets.FOSSA_PAT }}
1717

1818
strategy:
1919
fail-fast: false
@@ -52,7 +52,7 @@ jobs:
5252
curl -L \
5353
-X PATCH \
5454
-H "Accept: application/vnd.github+json" \
55-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
55+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
5656
-H "X-GitHub-Api-Version: 2022-11-28" \
5757
https://api.github.com/orgs/$ORG/properties/values \
5858
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"hasFossaTargets","value":"'"${{ steps.fossa-list-targets.outputs.HAS_FOSSA_TARGETS }}"'"}]}'
@@ -77,7 +77,7 @@ jobs:
7777
curl -L \
7878
-X PATCH \
7979
-H "Accept: application/vnd.github+json" \
80-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
80+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
8181
-H "X-GitHub-Api-Version: 2022-11-28" \
8282
https://api.github.com/orgs/$ORG/properties/values \
8383
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"fossaAnalyzeResult","value":"'"${{ steps.fossa-analyze.outputs.FOSSA_ANALYZE_RESULT }}"'"}]}'

.github/workflows/fossa-default.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
1414
ORG: ${{ github.repository_owner }}
1515
REPO: ${{ github.repository }}
16-
ORG_ADMIN_PAT: ${{ secrets.ELAGUERTA_PAT }}
16+
CUSTOM_PROPS_PAT: ${{ secrets.FOSSA_PAT }}
1717

1818
strategy:
1919
fail-fast: false
@@ -48,7 +48,7 @@ jobs:
4848
curl -L \
4949
-X PATCH \
5050
-H "Accept: application/vnd.github+json" \
51-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
51+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
5252
-H "X-GitHub-Api-Version: 2022-11-28" \
5353
https://api.github.com/orgs/$ORG/properties/values \
5454
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"hasFossaTargets","value":"'"${{ steps.fossa-list-targets.outputs.HAS_FOSSA_TARGETS }}"'"}]}'
@@ -73,7 +73,7 @@ jobs:
7373
curl -L \
7474
-X PATCH \
7575
-H "Accept: application/vnd.github+json" \
76-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
76+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
7777
-H "X-GitHub-Api-Version: 2022-11-28" \
7878
https://api.github.com/orgs/$ORG/properties/values \
7979
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"fossaAnalyzeResult","value":"'"${{ steps.fossa-analyze.outputs.FOSSA_ANALYZE_RESULT }}"'"}]}'

.github/workflows/fossa-elixir.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
1414
ORG: ${{ github.repository_owner }}
1515
REPO: ${{ github.repository }}
16-
ORG_ADMIN_PAT: ${{ secrets.ELAGUERTA_PAT }}
16+
CUSTOM_PROPS_PAT: ${{ secrets.FOSSA_PAT }}
1717

1818
strategy:
1919
fail-fast: false
@@ -52,7 +52,7 @@ jobs:
5252
curl -L \
5353
-X PATCH \
5454
-H "Accept: application/vnd.github+json" \
55-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
55+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
5656
-H "X-GitHub-Api-Version: 2022-11-28" \
5757
https://api.github.com/orgs/$ORG/properties/values \
5858
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"hasFossaTargets","value":"'"${{ steps.fossa-list-targets.outputs.HAS_FOSSA_TARGETS }}"'"}]}'
@@ -77,7 +77,7 @@ jobs:
7777
curl -L \
7878
-X PATCH \
7979
-H "Accept: application/vnd.github+json" \
80-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
80+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
8181
-H "X-GitHub-Api-Version: 2022-11-28" \
8282
https://api.github.com/orgs/$ORG/properties/values \
8383
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"fossaAnalyzeResult","value":"'"${{ steps.fossa-analyze.outputs.FOSSA_ANALYZE_RESULT }}"'"}]}'

.github/workflows/fossa-gradle.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
1414
ORG: ${{ github.repository_owner }}
1515
REPO: ${{ github.repository }}
16-
ORG_ADMIN_PAT: ${{ secrets.ELAGUERTA_PAT }}
16+
CUSTOM_PROPS_PAT: ${{ secrets.FOSSA_PAT }}
1717

1818
strategy:
1919
fail-fast: false
@@ -71,7 +71,7 @@ jobs:
7171
curl -L \
7272
-X PATCH \
7373
-H "Accept: application/vnd.github+json" \
74-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
74+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
7575
-H "X-GitHub-Api-Version: 2022-11-28" \
7676
https://api.github.com/orgs/$ORG/properties/values \
7777
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"hasFossaTargets","value":"'"${{ steps.fossa-list-targets.outputs.HAS_FOSSA_TARGETS }}"'"}]}'
@@ -96,7 +96,7 @@ jobs:
9696
curl -L \
9797
-X PATCH \
9898
-H "Accept: application/vnd.github+json" \
99-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
99+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
100100
-H "X-GitHub-Api-Version: 2022-11-28" \
101101
https://api.github.com/orgs/$ORG/properties/values \
102102
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"fossaAnalyzeResult","value":"'"${{ steps.fossa-analyze.outputs.FOSSA_ANALYZE_RESULT }}"'"}]}'

.github/workflows/fossa-ruby-bundler.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
1414
ORG: ${{ github.repository_owner }}
1515
REPO: ${{ github.repository }}
16-
ORG_ADMIN_PAT: ${{ secrets.ELAGUERTA_PAT }}
16+
CUSTOM_PROPS_PAT: ${{ secrets.FOSSA_PAT }}
1717

1818
strategy:
1919
fail-fast: false
@@ -51,7 +51,7 @@ jobs:
5151
curl -L \
5252
-X PATCH \
5353
-H "Accept: application/vnd.github+json" \
54-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
54+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
5555
-H "X-GitHub-Api-Version: 2022-11-28" \
5656
https://api.github.com/orgs/$ORG/properties/values \
5757
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"hasFossaTargets","value":"'"${{ steps.fossa-list-targets.outputs.HAS_FOSSA_TARGETS }}"'"}]}'
@@ -76,7 +76,7 @@ jobs:
7676
curl -L \
7777
-X PATCH \
7878
-H "Accept: application/vnd.github+json" \
79-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
79+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
8080
-H "X-GitHub-Api-Version: 2022-11-28" \
8181
https://api.github.com/orgs/$ORG/properties/values \
8282
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"fossaAnalyzeResult","value":"'"${{ steps.fossa-analyze.outputs.FOSSA_ANALYZE_RESULT }}"'"}]}'

.github/workflows/fossa-scala.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
FOSSA_API_KEY: ${{secrets.FOSSA_API_KEY}}
1414
ORG: ${{ github.repository_owner }}
1515
REPO: ${{ github.repository }}
16-
ORG_ADMIN_PAT: ${{ secrets.ELAGUERTA_PAT }}
16+
CUSTOM_PROPS_PAT: ${{ secrets.FOSSA_PAT }}
1717

1818
strategy:
1919
fail-fast: false
@@ -53,7 +53,7 @@ jobs:
5353
curl -L \
5454
-X PATCH \
5555
-H "Accept: application/vnd.github+json" \
56-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
56+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
5757
-H "X-GitHub-Api-Version: 2022-11-28" \
5858
https://api.github.com/orgs/$ORG/properties/values \
5959
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"hasFossaTargets","value":"'"${{ steps.fossa-list-targets.outputs.HAS_FOSSA_TARGETS }}"'"}]}'
@@ -78,7 +78,7 @@ jobs:
7878
curl -L \
7979
-X PATCH \
8080
-H "Accept: application/vnd.github+json" \
81-
-H "Authorization: Bearer $ORG_ADMIN_PAT" \
81+
-H "Authorization: Bearer $CUSTOM_PROPS_PAT" \
8282
-H "X-GitHub-Api-Version: 2022-11-28" \
8383
https://api.github.com/orgs/$ORG/properties/values \
8484
-d '{"repository_names":["'"${REPO##*/}"'"],"properties":[{"property_name":"fossaAnalyzeResult","value":"'"${{ steps.fossa-analyze.outputs.FOSSA_ANALYZE_RESULT }}"'"}]}'

0 commit comments

Comments
 (0)