Skip to content

Add GitHub Actions for e2e tests#7

Merged
mraible merged 27 commits into
mainfrom
github-actions
Jul 8, 2025
Merged

Add GitHub Actions for e2e tests#7
mraible merged 27 commits into
mainfrom
github-actions

Conversation

@mraible
Copy link
Copy Markdown
Contributor

@mraible mraible commented Mar 20, 2025

No description provided.

@mraible mraible marked this pull request as ready for review March 20, 2025 17:55
@mraible mraible closed this Mar 20, 2025
@mraible mraible reopened this Mar 20, 2025
Comment thread .github/workflows/main.yml Outdated
- name: Prepare app manifests
run: |
# Remove IDs from manifest
yq -i 'del(.. | select(has("id")).id) | del(.. | select(has("app_id")).app_id)' manifest.yml
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This just gave me the idea, maybe we can add a test that checks we didn't add ids by mistake to the manifest

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. I feel like we might want to write a tool that checks a Foundry sample app's repo for all the things necessary before it can be made public. However, some apps require IDs in them. For example, the Threat Hunting tutorial requires IDs or there's an import error. CrowdStrike/foundry-tutorial-threat-hunting#1

yq -i 'del(.. | select(has("id")).id) | del(.. | select(has("app_id")).app_id)' manifest.yml

# Generate unique app name
yq -i '.name = .name + "-${{ github.actor }}-" + "'$(date +"%Y%m%d%H%M")'"' manifest.yml
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there are some artifacts whose name can't be repeated (maybe workflows?) in the whole CID. If it's like that, renaming the app may be not enough

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I encountered this today. It's a real pain (IMO) that workflow names have to be unique across a CID.

@mraible mraible merged commit 8b0c49e into main Jul 8, 2025
1 check passed
@mraible mraible deleted the github-actions branch July 8, 2025 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants