Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix release credential check workflow (env variables, command line switches) #572

Merged
merged 2 commits into from
May 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/credcheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
contents: write
runs-on: ubuntu-latest
name: Check release credentials are valid
env:
ARTIFACTORY_URL: https://repox.jfrog.io/artifactory
steps:
- name: Checkout custom actions
uses: actions/checkout@v3
Expand All @@ -29,6 +31,7 @@ jobs:
- name: Check marketplace publisher personal access token
if: ${{ !cancelled() }}
env:
ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
VSCE_TOKEN: ${{ secrets.VISUALSTUDIO_PAT }}
working-directory: ./.github/actions/vsce-publish
run: |
Expand All @@ -39,6 +42,7 @@ jobs:
- name: Check Microsoft marketplace publisher personal access token
if: ${{ !cancelled() }}
env:
ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
OPENVSX_TOKEN: ${{ secrets.OPENVSX_TOKEN }}
working-directory: ./.github/actions/ovsx-publish
run: |
Expand All @@ -49,10 +53,9 @@ jobs:
- name: Check Artifactory reader token
if: ${{ !cancelled() }}
env:
ARTIFACTORY_URL: https://repox.jfrog.io/artifactory
ARTIFACTORY_ACCESS_TOKEN: ${{ fromJSON(steps.secrets.outputs.vault).ARTIFACTORY_ACCESS_TOKEN }}
run: |
curl -s -o /dev/null \
curl -L -s -o /dev/null \
-w '%{http_code}\n' \
-H "Authorization: Bearer ${ARTIFACTORY_ACCESS_TOKEN}" \
"${ARTIFACTORY_URL}/sonarsource-releases/org/sonarsource/sonarlint/vscode/sonarlint-vscode"
Loading