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

build: testing SSM parameter access in separate jobs #418

Closed
Closed
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
78 changes: 45 additions & 33 deletions .github/workflows/manual-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,47 +33,59 @@ jobs:
uses: actions/setup-go@v4
with:
go-version: ${{ needs.go-versions.outputs.latest }}
- name: Build and Test
uses: ./.github/actions/unit-tests
# - name: Build and Test
# uses: ./.github/actions/unit-tests
- name: 'Get Docker token'
uses: launchdarkly/gh-actions/actions/[email protected]
with:
aws_assume_role: ${{ vars.AWS_ROLE_ARN }}
ssm_parameter_pairs: '/global/services/docker/public/username = DOCKER_USERNAME, /global/services/docker/public/token = DOCKER_TOKEN'
- name: Publish Package
id: publish
uses: ./.github/actions/publish
with:
token: ${{ secrets.GITHUB_TOKEN }}
dry-run: ${{ inputs.dry_run }}
tag: ${{ inputs.tag }}
# - name: Publish Package
# id: publish
# uses: ./.github/actions/publish
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# dry-run: ${{ inputs.dry_run }}
# tag: ${{ inputs.tag }}

release-relay-binary-provenance:
test-ssm-secrets:
needs: ['build-publish']
runs-on: ubuntu-latest
permissions:
actions: read
id-token: write
contents: write
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
with:
base64-subjects: "${{ needs.build-publish.outputs.hashes }}"
upload-assets: ${{ !inputs.dry_run }}
upload-tag-name: ${{ inputs.tag }}
provenance-name: ${{ format('ld-relay-{0}_multiple_provenance.intoto.jsonl', inputs.tag) }}
contents: write
steps:
- shell: bash
run: |
echo ${{ secrets.DOCKER_USERNAME }}; echo $DOCKER_USERNAME;

release-relay-image-provenance:
needs: ['build-publish']
if: ${{ !inputs.dry_run }}
permissions:
actions: read
id-token: write
packages: write
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
strategy:
matrix: ${{fromJson(needs.build-publish.outputs.images_and_digests)}}
with:
image: ${{ matrix.image }}
digest: ${{ matrix.digest }}
registry-username: ${{ github.actor }}
secrets:
registry-password: ${{ secrets.GITHUB_TOKEN }}
# release-relay-binary-provenance:
# needs: ['build-publish']
# permissions:
# actions: read
# id-token: write
# contents: write
# uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
# with:
# base64-subjects: "${{ needs.build-publish.outputs.hashes }}"
# upload-assets: ${{ !inputs.dry_run }}
# upload-tag-name: ${{ inputs.tag }}
# provenance-name: ${{ format('ld-relay-{0}_multiple_provenance.intoto.jsonl', inputs.tag) }}

# release-relay-image-provenance:
# needs: ['build-publish']
# if: ${{ !inputs.dry_run }}
# permissions:
# actions: read
# id-token: write
# packages: write
# uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
# strategy:
# matrix: ${{fromJson(needs.build-publish.outputs.images_and_digests)}}
# with:
# image: ${{ matrix.images_and_digests.image }}
# digest: ${{ matrix.images_and_digests.digest }}
# secrets:
# registry-username: ${{ secrets.DOCKER_USERNAME }}
# registry-password: ${{ secrets.DOCKER_TOKEN }}
Loading